The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Switching from suphp to fcgi , Internal Server Error

Discussion in 'General Discussion' started by magj, Nov 25, 2014.

  1. magj

    magj Member

    Joined:
    Dec 20, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. magj

    magj Member

    Joined:
    Dec 20, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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
     
Loading...

Share This Page