I've been fighting this for about 20 hours straight. I have gotten it to work, but not the way I want.
I have multiple virtual domains, i.e.:
User nobody
Group user
DocumentRoot /home/httpd
ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
<Virtualdomain shdesigns.org>
DocumentRoot /home/www
</VirtualDomain>
<VirtualDomain webmail.shdesigns.org>
DocumentRoot /home/webmail/public_html
User webmail
Group webmail
</VirtualDomain>
<Directory /home/webmail/public_html>
Allow from all
Options ExecCGI Indexes
SetHandler cgi-script .pl
DirectoryIndex omail.pl
</Directory>
Access to webmail.shdesigns.org tries to open /home/webmail/public_html/omail.pl. The webmail perl script fails with "premature end of script headers". Basically the script does not run.
Scipt is owned by webmail group webmail, is r-xr-x-rx flagged. Same for public_html dir.
Apache 1.3.19 (reports suexec ok on startup.)
If I move the script to /home/http/cgi-bin/ it works fine if called from /cgi-bin/omail.pl in any of the other domains. Funny, it even works with the wrong owner and group.
The problem seems to be having multiple users and cgi script dirs.
I did see one reference that all cgi-scripts had to be in your main tree (default DocumentRoot.)
There is little docs on suexec, and I beleive this is the problem.
I will try upgrading to newer Apache. But it is RH 7.1 and does not have latest glibs etc.
Anyone with experience with multiple User/Group settings and having multiple cgi-scripts?
One of the weird things is the script is run directly from the DocumentRoot dir. I tried setting DefaultHandler cgi-script, with same error.
Also I set Loglevel debug and still no more info in logs.
Any ideas?
BTW, omail-webmail works great with qmail. Nice as it does not remove mail so when I access via regular mail prog, I still get the mail. Funny the docs say "If you are a Linux Guru you MIGHT be able to get this to work." True, as I got just as much info from /dev/nil as from their docs