• 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

[ERROR]500 Error with PHP-CGI

G

GabrieleD

Guest
Hi,

I've try to install php-suoshin (newer version) on my server.
but now when i try to acces to a website with PHP-fastCGI i get 500 error.

In error log i can see:

Premature end of script headers: cgi_wrapper,

How i can fix?
I must re-install php?How?

---------------------------------------------------------------
Parallels Plesk , 10.4.4, CentOs 5.4, 64bit
--------------------------------------------------------------
 
Now the error_log says


[Sat Apr 14 21:09:10 2012] [warn] [client ***********] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Sat Apr 14 21:09:10 2012] [error] [client ***********] Premature end of script headers: index.php
 
Last edited by a moderator:
First of all make sure that you haven't module mod_fcgid loaded twice. It should work only with /etc/httpd/conf.d/fcgid.conf configuration. There are shouldn't be any other mentions for mod_fcgid in Apache configs.
Also try to set value of ProcessLifeTime to 0 in /etc/httpd/conf.d/fcgid.conf
 
I've checked.
There aren't no mention of mod_fcgi on httpd.conf.
I 've try to set ProcessLimitLife to 0 but the server say 500Error .
 
Back
Top