Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Switching from suphp to fcgi , Internal Server Error

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

  1. magj

    magj Active Member

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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,277
    Likes Received:
    1,846
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. magj

    magj Active Member

    Joined:
    Dec 20, 2013
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,277
    Likes Received:
    1,846
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice