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.

I can't change PHP handler to fastcgi

Discussion in 'CloudLinux' started by rscalover, Dec 5, 2014.

  1. rscalover

    rscalover Member

    Joined:
    Dec 16, 2010
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Hi folks,

    Whenever i try to change the PHP handler to fastcgi via "WHM => Services Configuration => Configure PHP and suEXEC" i get an error message http 500 internal server error

    tail /usr/local/apache/logs/error_log tells me

    WHM seems to generate a file called php.conf with this content

    however the path /usr/local/cpanel/cgi-sys/php5 does not exist on my server and now i'm confused because usually "premature end of script headers" is a permissions related issue now i lost track :( suEXEC is enabled maybe that has something todo with it not sure.

    cat /etc/redhat-release

     
    #1 rscalover, Dec 5, 2014
    Last edited: Dec 5, 2014
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. rscalover

    rscalover Member

    Joined:
    Dec 16, 2010
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Yes i'm accessing a domain name not a Mod_UserDir url with a ~ in it .
     
  4. rscalover

    rscalover Member

    Joined:
    Dec 16, 2010
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    The problem seems to be caused by suEXEC and more precise the permissions of the suEXEC binary but if i change them i get errors about httpd.conf syntax jeesus what a nightmare this thing is .

    So the group running suEXEC must have an id that is higher then 100 but if i change it todo that i get httpd.conf syntax errors .

     
    #4 rscalover, Dec 7, 2014
    Last edited: Dec 7, 2014
  5. rscalover

    rscalover Member

    Joined:
    Dec 16, 2010
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Problem solved i forgot to run "cagefsctl --force-update" thanks @Cloudlinux support .
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
Loading...

Share This Page