• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

FastCGI problem, Plesk 12, PHP 5.4

Alex1

New Pleskian
Hello.

OS: CentOS 6.6 (Final)
Plesk version: 12.0.18 Update #24

I updated PHP 5.3 to PHP 5.4 by using http://kb.odin.com/en/115833

So PHP doesn't run as FastCGI application.
(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Premature end of script headers:

Can help me anyone?
 
after update I got error
Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory
so I did like this
ln -s /usr/bin/sw-engine-cgi /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

now I have error in /var/log/httpd/suexec_log
uid: (10000/infinityadmin) gid: (503/503) cmd: cgi_wrapper
cannot stat program: (cgi_wrapper)
 
Plesk uses its own php-cgi version
/var/www/cgi-bin/cgi_wrapper/cgi_wrapper -> /usr/bin/sw-engine-cgi

I also followed the instructions but it did not work, to make it work I ended copying the php 5.4 version.
cp /usr/bin/php-cgi /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

It appears to be working now, please let me know if this is not the correct way to fix this.
 
Plesk uses its own php-cgi version
/var/www/cgi-bin/cgi_wrapper/cgi_wrapper -> /usr/bin/sw-engine-cgi

I also followed the instructions but it did not work, to make it work I ended copying the php 5.4 version.
cp /usr/bin/php-cgi /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

It appears to be working now, please let me know if this is not the correct way to fix this.
This has worked for me too. Also i want to know if there is something more to do or this is correct.
 
Back
Top