That explains it. You don't want it in the cgi-bin. You want to have the cgi handler on another directory. Anything in a script-alias directory is automatically executed.
You want it in a regular directory with the cgi Handler and Options ExecCGI The reason you are getting RTFM comments is because you are asking apache questions in a dbmail mailing list. Also you didn't google the error message: exec format error cgi-bin html You should always do that before asking a question on a mailing list. This is my .htaccess file make sure you put the correct path in AuthUserFile. AuthUserFile /.../.htpasswd AuthGroupFile None AuthType Basic AuthName "Welcome to DBMA. Please enter your username and password." DirectoryIndex index.html Options ExecCGI MultiViews <Limit GET POST> require valid-user order allow,deny allow from all </Limit> David B. wrote: > thanks, but that doesn't really tell me anything. Here is the current > code for the default file in /etc/apache2/sites-available: > > ScriptAlias /cgi-bin/ /var/www/cgi-bin/ > <Directory "/var/www/cgi-bin/dbmailadministrator/"> > AllowOverride Options > Options ExecCGI MultiViews FollowSymLinks > AddHandler cgi-script cgi pl > Order allow,deny > Allow from all > </Directory> > > pretty standard stuff, in fact it's pretty much the default setting. > > There must be a specific command that allows you to feed > html files FROM INSIDE a cgi-bin directory, but my understanding > is that it can't be done. Which really doesn't make any sense. > How could cgi-bin be around for so many years without people > wanting to feed html files out of it? > > > > > ------------------------------------------------------------------------ > Date: Sun, 27 Jul 2008 15:11:57 +1000 > From: [EMAIL PROTECTED] > To: [email protected] > Subject: Re: AW: [Dbmail] need a link > > put the cgi in the html directory and allow it to execute > option exec-cgi or something > > > David B. wrote: > > READ the message, I know how to set up CGI, that isn't the point. > It's how to feed html in CGI that's the point. > > >From everything I've read you can't feed html files out of a > cgi-bin directory. cgi-bin wants to execute every file through > perl, or whatever. dbmailadministrator expects to see > the html files in the cgi-bin directory and they won't feed. > > SO, the point is, is that if dbmailadministrators put them in the > cgi-bin > directory in the first place, they must expect them to feed. > However, no > one, no one, has any idea of how to set up the cgi-bin > so that it will feed html. > > Thanks but I know how to set up postfix, done it dozens of times. > > on the second paragraph, thank you, that's what I figured, but > there is no documentation as to port forwarding, so that's why > I asked. Since the documentation doesn't explain HOW dbmail > works, and that it intercepts the mails out of postfix through > the transport, I needed to know, since it isn't working the way it > is now. > > the docs don't tell me if I should be running the pop3d > or the imapd, should I only run the lmtpd? then? If I should only > be running the lmtpd, then what are the pop3d and imapd > daemons for? That's not documented either. > > dbma does not work because there is no way to test it. > I don't receive emails into the postgres tables. > > When postfix was only installed, I received emails into the Maildir, > when I installed DBMA, I receive nothing into the tables. > > I have read the docs and there is no documentation for these questions, > otherwise I wouldn't be here. > > I'm amazed at this response. When I go to other mail lists and ask a > question, I'm presented with answers and links to answers, not just > 'go read a manual.' > > postgres works, postfix works, dbmail might work but there is no > built in testing mechanism to see if it works, dbmailadministrator > sees postgres and seems to work except for the html feeding out > of the cgi-bin. Port 25 is open on the firewall and nmap on > localhost shows currently: > > Starting Nmap 4.20 ( http://insecure.org ) at 2008-07-26 22:53 MDT > Interesting ports on localhost (127.0.0.1): > Not shown: 1688 closed ports > PORT STATE SERVICE > 22/tcp open ssh > 24/tcp open priv-mail > 25/tcp open smtp > 53/tcp open domain > 80/tcp open http > 110/tcp open pop3 > 143/tcp open imap > 443/tcp open https > 5432/tcp open postgres > > ps ax | grep dbmail shows: > > [EMAIL PROTECTED]:~$ ps ax | grep dbmail > 4750 ? S 0:00 /usr/sbin/dbmail-imapd > 4751 ? S 0:00 /usr/sbin/dbmail-imapd > 4754 ? S 0:00 /usr/sbin/dbmail-pop3d > 4755 ? Ss 0:00 postgres: dbmail dbmail 127.0.0.1(54151) > idle > 4760 ? S 0:00 /usr/sbin/dbmail-lmtpd > 4764 ? S 0:00 /usr/sbin/dbmail-imapd > 4765 ? Ss 0:00 postgres: dbmail dbmail 127.0.0.1(54153) > idle > 4766 ? R 0:00 /usr/sbin/dbmail-pop3d > 4767 ? R 0:00 /usr/sbin/dbmail-lmtpd > 4768 ? Ss 0:00 postgres: dbmail dbmail 127.0.0.1(54154) > idle > 4769 ? S 0:00 /usr/sbin/dbmail-pop3d > 4770 ? Ss 0:00 postgres: dbmail dbmail 127.0.0.1(54155) > idle > 4771 ? Ss 0:00 postgres: dbmail dbmail 127.0.0.1(54156) > idle > 4772 ? S 0:00 /usr/sbin/dbmail-lmtpd > 4773 ? Ss 0:00 postgres: dbmail dbmail 127.0.0.1(54157) > idle > 4774 ? S 0:00 /usr/sbin/dbmail-pop3d > 4775 ? Ss 0:00 postgres: dbmail dbmail 127.0.0.1(54158) > idle > 4776 ? S 0:00 /usr/sbin/dbmail-lmtpd > 4777 ? Ss 0:00 postgres: dbmail dbmail 127.0.0.1(54159) > idle > 4885 ? S 0:00 /usr/sbin/dbmail-pop3d > 4886 ? S 0:00 /usr/sbin/dbmail-imapd > 4887 ? Ss 0:00 postgres: dbmail dbmail 127.0.0.1(41312) > idle > 4888 ? Ss 0:00 postgres: dbmail dbmail 127.0.0.1(41313) > idle > 17568 ? S 0:00 /usr/sbin/dbmail-imapd > 17569 ? Ss 0:00 postgres: dbmail dbmail 127.0.0.1(56326) > idle > 17595 pts/0 R+ 0:00 grep dbmail > > > thanks > > ------------------------------------------------------------------------ > From: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > To: [email protected] <mailto:[email protected]> > Subject: AW: [Dbmail] need a link > Date: Sun, 27 Jul 2008 02:09:24 +0200 > > Well, you are a linux administrator for 5 years and you dont know > how to setup an apache httpd server with cgi enabled? > > > > Why the hell you want forward 25 to port 24?! dbmail requires a > fullfeatured mta like sendmail, postfix or exim. then it will > forward the local parts via pipe or lmtp. > > > > everything you need for DBMA is written in the distributionfile of > DBMA. just follow those instructions they give you and you are fine. > i cannot believe that you have tried it for 7 weeks now. > > > > so my advice is still: read the f***in manuals. learn how to setup > apache or whatever http-server you may use (lighttpd is pretty nice > too). learn how to setup a mta (sendmail, postfix, exim, whatever). > all these mta are pretty good documentated and you can google a lot > including adding antispam features etc etc. > > Also there are many wiki pages (dbmail has one, exim has one, i > guess postfix and sendmail may have one too). even dbma has one. so > what the hell is ur problem reading them? > > > > you asked if mysql is neccessary for dbma, although its written in > dbma's documentation. since your mails are in english i guess you > can read english. so the language of the documentation isnt a > problem too. > > > > so be more acurate what your REAL problem ist. how far is your > installation? does the mta and dbmail work so far?! tested? > > do you have a DBMA problem only? why is your exactly dbma problem? > setup of dbma is quite simple, so i cannot imagine that this is your > problem. you have some symptoms or error-messages? if so, which one? > > > > gosh, 7weeks and 5 years as linux administrator?! what have you done > in these 5 years?! ;) SCNR > > > > Simon > > > > *Von:* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > [mailto:[EMAIL PROTECTED] *Im Auftrag von *David B. > *Gesende**t:* Sonntag, 27. Juli 2008 01:50 > *An:* DBMail mailinglist > *Betreff:* RE: [Dbmail] need a link > > > > > I've already done that, the docs don't say anything about the > questions I've asked. > There is nothing that says I should or should not forward port 25 to > port 24, > or just forward it to 25. > > there is also nothing on the entire internet about how to serve html > in a cgi-bin. Dbmailadministrator puts all of their html files in > the cgi-bin, > but it's designed for bsd, so maybe there is a way to do it there, but > I've found no one, nor any doc anywhere that explains how to do it. > > I have found plenty of people that say it's not possible, but why would > they put the html files in the cgi-bin if it were not? > > there are also no docs as to whether or not I have to use mysql to > get the > DBMA_MTA working, but since this isn't really a dbmailadministrator > server, I just thought I would throw that out there. > > Also, I don't see anywhere where I can get to any archives so I can > research what has already been answered. There aren't any > docs on that either. > > I've spent 7 weeks working on this before I decided to post in the > dbmail.org server. > > If you have answers, great, or even links to answers, but suggesting > I read the docs is rather unhelpful as I've already done that, and I've > been a linux administrator for 5 years, so I have a pretty good idea > of what I'm doing, so, if I'm in here asking for info, it's because it's > not documented. > > > ------------------------------------------------------------------------ > > From: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > To: [email protected] <mailto:[email protected]> > Subject: Re: [Dbmail] need a link > Date: Sat, 26 Jul 2008 16:19:46 +0200 > CC: [email protected] <mailto:[email protected]> > > You may want to read the f... manual. :) or better if you need fast > results, you better contract an specialist. > > > > Read apache httpd manual > > Take an course about Linux administration > > Read carefully the documentation of dbmail and dbma package. > > > > My2cents > > > > Simon > > > -- > > Simon Lange Consulting > > Tel: +49(0)4131 398590 > > Mob: +49(0)151 226 40 160 > > Web: www.simonlange.de <http://www.simonlange.de> > > > Am 26.07.2008 um 06:18 schrieb "David B." <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>>: > > I know this isn't a dbmailadministrator server, but I'm sure most > of you use it to maintain your tables. > > does anyone have a link to an FAQ or README > that explains how to set up the configuration options in DBMA.cgi? > > also, do I have to have mysql working to use the DBMA_MTA tables > option? > > One other thing since I'm here, I'm using Ubuntu 7.04, my version > of dbmail administrator has html files included in the cgi-bin > subdirectory, has anyone any idea of how to get apache to serve > them up? > > How do I test dbmail to see if it's working? I know the > processes are running, but I don't know if I should port forward > 25 to 24, or just leave 25 open and the lmtp server grabs > the mail and puts it into the tables. > > what daemons should I be running? I'm using lmtp, but should > I also be running the imap or pop3 daemons? > > thanks > > > ------------------------------------------------------------------------ > > Time for vacation? WIN what you need. Enter Now! > <http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm> > > _______________________________________________ > DBmail mailing list > [email protected] <mailto:[email protected]> > https://mailman.fastxs.nl/mailman/listinfo/dbmail > > > > ------------------------------------------------------------------------ > > Stay in touch when you're away with Windows Live Messenger. IM > anytime you're online. > > <http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_messenger2_072008> > > > ------------------------------------------------------------------------ > Keep your kids safer online with Windows Live Family Safety. Help > protect your kids. > > <http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_family_safety_072008> > > > ------------------------------------------------------------------------ > > _______________________________________________ > DBmail mailing list > [email protected] <mailto:[email protected]> > https://mailman.fastxs.nl/mailman/listinfo/dbmail > > > > > ------------------------------------------------------------------------ > With Windows Live for mobile, your contacts travel with you. Connect on > the go. > <http://www.windowslive.com/mobile/overview.html?ocid=TXT_TAGLM_WL_mobile_072008> > > > ------------------------------------------------------------------------ > > _______________________________________________ > DBmail mailing list > [email protected] > https://mailman.fastxs.nl/mailman/listinfo/dbmail _______________________________________________ DBmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
