• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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