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.

suphp to fastcgi error

Discussion in 'General Discussion' started by sahostking, Jul 15, 2014.

  1. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    299
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Hi,

    I see one of our engineers tried changing a server from suPHP with many domains on to fastcgi.

    I found in the logs the following:

    [warn] [client 11.22.33.44] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
    [error] [client 11.22.33.44] Premature end of script headers: index.php
    suexec policy violation: see suexec log for more details

    I see this in suexec logs: cannot stat program: (php5)
    I read here it may be CageFS? http://www.webhostingtalk.com/showthread.php?t=1179194


    Anyway to easily fix all permissions after switching or is recommended to rather just stick with the PHP handler we started off with suPHP?

    Any ideas or recommendations.
     
    #1 sahostking, Jul 15, 2014
    Last edited: Jul 15, 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
    Hello :)

    The mod_fcgid Apache module is only recommended for advanced system administrators who understand how to modify the performance of the mod_fcgid Apache module. You can search for "FCGI Tuning" on our forums for tips on how to modify the settings to resolve certain error messages. You may also find the following thread helpful:

    FCGI and Cloud Linux

    Thank you.
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    I am replying to this thread as I had a ticket this evening on CloudLinux with CageFS where this same error was happening in /usr/local/apache/logs/suexec_log file:

    Code:
    [2014-10-17 04:57:13]: cannot stat program: (php5)
    The machine is on CloudLinux with CageFS and the FCGI binary for php5 needed to be placed into CageFS, which is simply done this way by running a forced update:

    Code:
    cagefsctl --force-update
    After doing the above, the error ceased happening and I believe it would be the case on any other server with CloudLinux to have it also fixed this way.

    Thanks!
     
Loading...

Share This Page