Ich habe ein Problem mit Apache2 und fastCGI bzw. Fcgid. Ich will im normalen Server per mod_php PHP haben, und in einem speziellen Directory PHP 5.2.1. Soweit, so gut. PHP überalll fuktioniert, das binary für 5.2.1 ist auch als FastCGI konmpiliert und läuft (phpinfo enthält nur komischerweise nicht da komplette ./configure-Statement). Nur in dem Directory gibts einen 500 bei jeder PHP-Datei und im Error_log
Code: Select all
[Mon Feb 12 13:22:13 2007] [notice] mod_fcgid: call /var/www/html/php5.2.1/phpBB2/index.php with wrapper /usr/local/php5.2.1/bin/php
[Mon Feb 12 13:22:13 2007] [notice] mod_fcgid: server /var/www/html/php5.2.1/phpBB2/index.php(28858) started
[Mon Feb 12 13:22:13 2007] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Mon Feb 12 13:22:13 2007] [error] [client 127.0.0.1] Premature end of script headers: index.php
X-Powered-By: PHP/5.2.1
Content-type: text/html
[Mon Feb 12 13:22:16 2007] [notice] mod_fcgid: process /var/www/html/php5.2.1/phpBB2/index.php(28858) exit(communication error), terminated by calling exit(), return code: 0
Der Directory-Abschnitt in der httpd.conf
Code: Select all
<Directory /var/www/html/php5.2.1>
AddHandler fcgid-script .php
FCGIWrapper /usr/local/php5.2.1/bin/php .php
Options +ExecCGI -MultiViews +Indexes
Order allow,deny
AllowOverride All
Allow from all
Deny from None
</Directory>Code: Select all
# This is the Apache server configuration file for providing FastCGI support
# through mod_fcgid
#
# Documentation is available at http://fastcgi.coremail.cn/doc.htm
LoadModule fcgid_module modules/mod_fcgid.so
# Use FastCGI to process .fcg .fcgi & .fpl scripts
# Don't do this if mod_fastcgi is present, as it will try to do the same thing
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
# Sane place to put sockets
SocketPath run/mod_fcgid
MaxRequestsPerProcess 500
# This is the Apache server configuration file for providing FastCGI support
# through mod_fcgid
#
# Documentation is available at http://fastcgi.coremail.cn/doc.htm
LoadModule fcgid_module modules/mod_fcgid.so
# Use FastCGI to process .fcg .fcgi & .fpl scripts
# Don't do this if mod_fastcgi is present, as it will try to do the same thing
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
# Sane place to put sockets
SocketPath run/mod_fcgid
MaxRequestsPerProcess 500
MfG
Corni