FastCGI PHP und Apache im Chroot
Posted: 2007-05-21 10:38
Nachdem alles perfekt lief, wollte ich den Apache samt PHP, MySQL usw. ins chroot stecken, nun funktioniert aber fastcgi im chroot nur noch mangelhaft, erst einmal dauert es minuten bis ein FastCGI Prozess erzeugt ist, manachmal erhalte ich dann eine HTTP 500 Nachricht usw.
Die Logs sagen folgendes:
Hat jemand eine Idee, woran dies liegen kann?
Die Logs sagen folgendes:
Wrapper sieht aus wie immer und hat auch alles seine gleichen Berechtigungen, wie ohne chroot:[Mon May 21 08:23:15 2007] [notice] mod_fcgid: call /var/www/x.de/public/php.php with wrapper /var/www/x.de/cgi-bin/php5.fcgi
[Mon May 21 08:24:09 2007] [warn] mod_fcgid: process 3398 graceful kill fail, sending SIGKILL
[Mon May 21 08:24:15 2007] [notice] mod_fcgid: process /var/www/x.de/public/php.php(3398) exit(communication error), get stop signal 9
[Mon May 21 08:24:00 2007] [error] [client x] Premature end of script headers: php.php
Code: Select all
#!/bin/sh
PHPRC="/usr/local/apache/php-ini/x.de"
export PHPRC
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/local/apache/php-binary/php5/bin/php