Answer the question
In order to leave comments, you need to log in
Why can phpb processes crash in fast_cgi + apache-worker mode?
There is a VPS server based on Debian 8, it runs apache-2.4.10 in mpm-worker mode,
for php I use mod_fcgi, without suexec.
PHP 5.6.29-0+deb8u1, without caching modules.
settings in general, nothing special:
<IfModule mod_fcgid.c>
FcgidIPCDir /var/run/mod_fcgid
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
FcgidMaxRequestLen 20000000
FcgidConnectTimeout 10
FcgidIdleTimeout 10
PHP_Fix_Pathinfo_Enable 1
FcgidMaxProcesses 200000
</IfModule>
#!/bin/bash
PHPRC=$PWD/../etc/php5
export PHPRC
umask 022
export PHP_FCGI_CHILDREN
export PHP_FCGI_MAX_REQUESTS=99999990
SCRIPT_FILENAME=$PATH_TRANSLATED
export SCRIPT_FILENAME
exec /usr/bin/php5-cgi
(104)Connection reset by peer: [client 1.1.1.1:29617] mod_fcgid: error reading data from FastCGI server
[core:error] [pid 8840:tid 47795850016512] [client 1.1.1.1:29617] End of script output before headers: script.php
mod_fcgid: can't apply process slot for /path/to/wrapper/php
/etc/init.d/apache2 stop
rm -f /var/run/mod_fcgid/*
/etc/init.d/apache2 stop
Answer the question
In order to leave comments, you need to log in
Wouldn't it be easier to switch to mod_proxy_fcgi + php-fpm? If you use Proxy via Handler , all rewrites will work. To automatically restart php-fpm when it suddenly crashes, you can use supervisord
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question