• 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

500 Error - PhP Fast CGI

G

GabrieleD

Guest
Hi,

I've a problem with FastCGI.
When i try to run a site with FastCGI i got a 500 error.


This is the error_log

[Sat Apr 14 22:10:10 2012](104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Sat Apr 14 22:10:10 2012] [error] [client ***********] Premature end of script headers: index.php

---------------------------------------------------------------
Parallels Plesk , 10.4.4, CentOs 5.4, 64bit
--------------------------------------------------------------
 
whats the result of the below command ?


grep CGI_PHP_BIN /etc/psa/psa.conf

the variable must have the value that defines the binary path of cgi
 
I wrote this:
# grep CGI_PHP_BIN /etc/psa/psa.conf

It gave no result.

I opened /etc/psa/psa.conf file and added this line to end of file:
CGI_PHP_BIN /usr/bin/php-cgi

Restarted the server. But it didn't work. I still get this error for FastCGI:
[Fri Aug 09 21:50:02 2013] [warn] [client 5.47.201.9] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Fri Aug 09 21:50:02 2013] [error] [client 5.47.201.9] Premature end of script headers: index.php
 
Back
Top