michelinux
New Pleskian
I've upgraded one of my servers to Plesk panel 11.5.30 so that I can use two PHP versions on the same server
Now both of PHP versiond don't work in CGI or FastCGI mode (500 internal server error)
Error log says:
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
suexec_log says:
uid: (10005/xxxxx) gid: (506/506) cmd: cgi_wrapper
seexec and cgi_wrapper permissions are ok:
-r-s--x--- 1 root apache 24416 11 ago 10:09 /usr/sbin/suexec
-rwxr-xr-x 1 root root 19536 24 lug 13:16 /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
Just to be sure, I've copied /usr/sbin/suexec from another (working) server
this is my /etc/httpd/conf.d/fcgid.conf:
LoadModule fcgid_module modules/mod_fcgid.so
<IfModule mod_fcgid.c>
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
FcgidIPCDir /var/run/mod_fcgid/sock
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidMinProcessesPerClass 0
FcgidConnectTimeout 30
FcgidIOTimeout 45
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
FcgidMaxRequestLen 104857600
</IfModule>
ls -al /var/run/mod_fcgid/
drwxr-xr-x 3 apache apache 4096 11 ago 10:10 .
drwxr-x--x 20 root root 4096 11 ago 10:10 ..
-rw-r--r-- 1 root root 8 11 ago 10:10 fcgid_shm
drwxrwxrwx 2 apache apache 4096 11 ago 10:19 sock
What can I do?
Now both of PHP versiond don't work in CGI or FastCGI mode (500 internal server error)
Error log says:
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
suexec_log says:
uid: (10005/xxxxx) gid: (506/506) cmd: cgi_wrapper
seexec and cgi_wrapper permissions are ok:
-r-s--x--- 1 root apache 24416 11 ago 10:09 /usr/sbin/suexec
-rwxr-xr-x 1 root root 19536 24 lug 13:16 /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
Just to be sure, I've copied /usr/sbin/suexec from another (working) server
this is my /etc/httpd/conf.d/fcgid.conf:
LoadModule fcgid_module modules/mod_fcgid.so
<IfModule mod_fcgid.c>
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
FcgidIPCDir /var/run/mod_fcgid/sock
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidMinProcessesPerClass 0
FcgidConnectTimeout 30
FcgidIOTimeout 45
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
FcgidMaxRequestLen 104857600
</IfModule>
ls -al /var/run/mod_fcgid/
drwxr-xr-x 3 apache apache 4096 11 ago 10:10 .
drwxr-x--x 20 root root 4096 11 ago 10:10 ..
-rw-r--r-- 1 root root 8 11 ago 10:10 fcgid_shm
drwxrwxrwx 2 apache apache 4096 11 ago 10:19 sock
What can I do?