sahostking

Well-Known Member
May 15, 2012
367
9
68
Cape Town, South Africa
cPanel Access Level
Root Administrator
Twitter
Hi,

I see one of our engineers tried changing a server from suPHP with many domains on to fastcgi.

I found in the logs the following:

[warn] [client 11.22.33.44] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[error] [client 11.22.33.44] Premature end of script headers: index.php
suexec policy violation: see suexec log for more details

I see this in suexec logs: cannot stat program: (php5)
I read here it may be CageFS? http://www.webhostingtalk.com/showthread.php?t=1179194


Anyway to easily fix all permissions after switching or is recommended to rather just stick with the PHP handler we started off with suPHP?

Any ideas or recommendations.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Hello :)

The mod_fcgid Apache module is only recommended for advanced system administrators who understand how to modify the performance of the mod_fcgid Apache module. You can search for "FCGI Tuning" on our forums for tips on how to modify the settings to resolve certain error messages. You may also find the following thread helpful:

FCGI and Cloud Linux

Thank you.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello,

I am replying to this thread as I had a ticket this evening on CloudLinux with CageFS where this same error was happening in /usr/local/apache/logs/suexec_log file:

Code:
[2014-10-17 04:57:13]: cannot stat program: (php5)
The machine is on CloudLinux with CageFS and the FCGI binary for php5 needed to be placed into CageFS, which is simply done this way by running a forced update:

Code:
cagefsctl --force-update
After doing the above, the error ceased happening and I believe it would be the case on any other server with CloudLinux to have it also fixed this way.

Thanks!