Switching from suphp to fcgi , Internal Server Error

magj

Active Member
Dec 20, 2013
35
0
6
Germany
cPanel Access Level
Root Administrator
Hi

I want to switch from suphp to fcgi , When I switch the handler, My site(s) throw a 500 Internal Server Error.

This is the error:
client denied by server configuration: /home/myuser/public_html/whm-server-status

I run:
Code:
tail -f /usr/local/apache/logs/error_log
I get this error in apache log:
Code:
suexec policy violation: see suexec log for more details
 [warn] [client myIP] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://mydomain.com/index.php
 [error] [client myIP] Premature end of script headers: index.php,
In suexec log I get this:
Code:
 cannot stat program: (php5)
 uid: (501/myuser) gid: (512/myuser) cmd: php5
The folder and file permissions are correct as I switch back to suPHP it just works.

Any help would be appreciated.
Thanks
Regards
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,216
463
Hello :)

Are you attempting to access your website through the domain name itself or through Mod_UserDir? Note that UserDir requests will not function correctly when using Mod_FCGI. This is documented at:

FCGI Considerations

Disabling SuExec will allow the URL to load if it's a UserDir request, but it reduces the overall security of FCGI.

Thank you.
 

magj

Active Member
Dec 20, 2013
35
0
6
Germany
cPanel Access Level
Root Administrator
Hi :)

Thanks for your help, I use domain name only. I checked the considerations, My files are 0644 and my folders are 0755.

Could it be related to cloudlinux? I use cagefs/php selector too. I want the security aspects of SuExec.


Regards