Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jun 2011
    Posts
    5

    Question After FastCGI install via EasyApache, all PHP files return 500 internal server error

    I have a cPanel VPS server running CentOS 5 with WHM.

    This was a brand new installation with no custom changes made. I noticed that fcgi was not available for use with PHP so I recompiled Apache and PHP using EasyApache, and chose to enable fastcgi. After the process was done, everything seemed to look ok. fcgi is now available when configuring PHP in WHM.

    When I choose fcgi as the handler for PHP, all PHP scripts return a 500 internal server error. If I switch back to cgi, suphp, or dso, then everything works.

    Why does fastcgi not work?

    I checked the log files and can't find any entries at all related to this. There is nothing related in /var/logs and nothing in error_log for the specific domain.

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: After FastCGI install via EasyApache, all PHP files return 500 internal server er

    The error logs for Apache are in /usr/local/apache/logs/error_log location. Have you checked these when loading the pages in a browser?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Jun 2011
    Posts
    5

    Default Re: After FastCGI install via EasyApache, all PHP files return 500 internal server er

    thanks. In there was:

    Premature end of script headers: license.php

    All that I had in license.php was phpinfo(); to test it. I found that when accessing the site via IP address and home dir such as /http://108.11.11.11/~myhomedir then it fails but when accessing via the domain name it worked after I played around with permissions.

    I stil see this in the logs:


    [2011-06-07 21:29:49]: uid: (500/eadip) gid: (500/eadip) cmd: php5
    [2011-06-07 21:29:49]: command not in docroot (/usr/local/cpanel/cgi-sys/php5)

Similar Threads & Tags
Similar threads

  1. 500 Internal Server Error With PHP Scripts/Files
    By TorchServers in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 04-30-2011, 08:50 AM
  2. Internal Server Error 500 + mod_GeoIP Custom Module after install with EasyApache
    By jameshurrell in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 02-18-2011, 12:42 AM
  3. Runnng PHP as FastCGI instead of DSO - Internal Server Error
    By DReade83 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 03-10-2009, 12:19 PM
  4. Replies: 33
    Last Post: 09-10-2006, 12:56 AM
  5. fastcgi / internal 500's after php upgrade
    By NoAgendas in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 09-02-2006, 01:14 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube