Re: Working installation with Apache 2.0?
Yves Goergen <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Okay, I came somewhat further already. I have found that mod_fastcgi and it loaded successfully with Apache. Next was the PHP configuration. I mainly followed the tutorial in [1] except for the starter script part. I'm okay with a PHP starter script for each user because my vhosts are auto-generated anyway. So I took suexec as-is without modification and added that part to the Apache configuration. When I try to access a PHP script, it waits 30s and returns an error 500. This is what the Apache error log says: > (...) [error] [client 192.168.0.2] FastCGI: comm with (dynamic) server "/www/web001/cgi-bin/php5.fcgi" aborted: (first read) idle timeout (30 sec), referer: http://web001.debian3u/ > (...) [error] [client 192.168.0.2] FastCGI: incomplete headers (0 bytes) received from server "/www/web001/cgi-bin/php5.fcgi", referer: http://web001.debian3u/ Here's my /www/web001/cgi-bin/php5.fcgi: > #!/bin/sh > exec /usr/local/bin/php5-fcgi -rwxr-xr-x 1 web001 www-data 136 Jan 1 06:51 cgi-bin/php5.fcgi* The PHP script has correct ownership of web001:www-data. The suexec_log doesn't even exist. The FastCGI Ipc directory is created but empty. There was only once a socket file in it when I had disabled suexec, see below. When I tried to follow the official FastCGI FAQ Apache config, it did nothing at all but offering me the PHP source file as a download which shows me that it totally ignored my configuration. So I went back to Johan's way. I can make it work interpreting PHP files though, but only if I disable the FastCgiWrapper line. As expected, PHP scripts are run by the Apache user then which is not so good for a productive server. I assume something's wrong with my suexec that it doesn't want to run it. Anybody got some hints? [1] http://www.trilithium.com/johan/2005/04/apache2-fastcgi/ -- Yves Goergen "LonelyPixel" <[email protected]> "Does the movement of the trees make the wind blow?" http://newsboard.unclassified.de - Unclassified NewsBoard Forum ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/