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!

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:
    51
    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:
    44,396
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    To confirm, are you accessing an actual domain name when receiving this error and not using an Apache Mod_UserDir URL?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rscalover

    rscalover Member

    Joined:
    Dec 16, 2010
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    51
    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:
    51
    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:
    51
    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:
    44,396
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
    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