Switching from suphp to fcgi , Internal Server Error
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:
I get this error in apache log:
In suexec log I get this:
The folder and file permissions are correct as I switch back to suPHP it just works. Any help would be appreciated. Thanks Regards
tail -f /usr/local/apache/logs/error_log
I get this error in apache log:
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:
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
-
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. 0 -
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 0 -
You may find the following thread helpful as well: Apache errors related to FCGI Thank you. 0
Please sign in to leave a comment.
Comments
3 comments