I compiled sqwebmail 0.37a with fastcgi support with fastcgi
devkit_2.2.0. I am trying to run it on apache 1.3.12 with
mod_fastcgi_2.2.6. But unfortunatly it give internal server error
although when I run the same binary in a normal cgi directory it works
fine. It just fails when I give it the .fcg extension and run it as a
fast cgi.
Here the apache's error_log.
------------------------------------------------------------>>
[Thu Aug 24 14:32:28 2000] [warn] FastCGI: (dynamic) server
"/usr/local/apache/cgi-bin/sqwebmail.fcg" started (pid 3374)
chdir: Permission denied
[Thu Aug 24 14:33:14 2000] [error] [client 127.0.0.1] FastCGI:
incomplete headers (0 bytes) received from server
"/usr/local/apache/cgi-bin/sqwebmail.fcg"
sqwebmail.fcg: fcgiapp.c:1998: FCGX_Finish_r: Assertion
`reqDataPtr->nWriters == 0' failed.
Cache-Control: no-store
Pragma: no-cache
Cache-Control: no-store
Pragma: no-cache
[Thu Aug 24 14:33:14 2000] [warn] FastCGI: (dynamic) server
"/usr/local/apache/cgi-bin/sqwebmail.fcg" (pid 3374) terminated due to
uncaught signal '6' (Aborted)
-------------------------------------------------------------<<
I noticed the "chdir: Permission denied" line in the error_log so I
commented the setuid(getuid()) and setgid(getgid()) lines in sqwebmail.c
to prevent the cgi from droping the root privilages , but still it does
not work.

I appreciate your help.

Best regards


Reply via email to