Re: Apache2 FastCGI and PHP5
Paul Swanson <paul-roVPbWJt/dtWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel,gmane.spam.detected |
|---|---|
| Message-ID | <[email protected]> |
Thanks for your response David. Somehow I missed some glaring messages in /var/log/messages. SELinux was the culprit; I've switched it to permissive mode for now. Do you (or does anyone) have any experience in getting FastCGI and SELinux to play nice? Thanks! Paul S. David Birnbaum wrote: > Paul, > > Please check all of your logs - there's going to be useful output > somewhere. If you don't see anything in the logs, check your Apache > configuration and make sure you're logging everything. Once you see > what output comes out, next debugging steps will be more apparent. > > David. > > ------------------------------------------------------------------------ > > Paul Swanson wrote: >> Hi All >> >> I hope my question is not out of place, but I don't know where else to >> turn. I am currently trying to configure my CentOS 4.6 web server to run >> PHP5 (cgi) via FastCGI, and it seems that FastCGI is not cooperating. >> >> The specs: >> >> Apache 2.0.59 >> PHP 5.2.5 >> FastCGI 2.4.0 >> mod_fastcgi 2.4.6 >> >> The problem: >> >> I want to have a web server directory (in this case a whole virtual >> host) that executes PHP scripts via PHP5 CGI (via FastCGI). >> >> Apache2 loads mod_fastcgi happily. My virtual host contains a Directory >> directive: >> >> AddHandler application/x-httpd-php5 .php .php5 >> Action application/x-httpd-php5 /cgi-bin/php5.fcgi >> >> The php5.fcgi script contains the following: >> >> #!/bin/sh >> PHP_FCGI_CHILDREN=2 >> export PHP_FCGI_CHILDREN >> PHP_FCGI_MAX_REQUESTS=5000 >> export PHP_FCGI_MAX_REQUESTS >> exec /usr/local/php5/bin/php-cgi >> >> The executable (php-cgi) it refers to is in place and tested ok. >> >> But, when I access / execute a PHP script in that directory Apache >> appears to hand to control over to FastCGI and then hang until Apache >> returns a 500 Internal Server Error. >> >> To me it seems that FastCGI is not responding or handing the script over >> to the PHP5 executable as it should. >> >> Any ideas what I should look at next? >> >> Thanks! >> >> Paul S. >> ___________________________________ >> fastcgi-developers mailing list >> http://fastcgi.com/fastcgi-developers/ >> ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/