Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Oct 2006
    Location
    Cheshire, UK
    Posts
    196

    Question Runnng PHP as FastCGI instead of DSO - Internal Server Error

    I've rebuilt Apache to include FastCGI and mod_fcgi, set PHP from DSO to FastCGI, but every site gives me a "Internal Server Error" message. Switching back to DSO and we're OK.

    Is there something I've missed?

    I'm not using SuPHP or mod_security, but I am using eAccelerator and Suhosin.

    Can anyone help?

    Many thanks.

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    FastCGI requires some manual configuration for it to work.

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2007
    Location
    Ha Noi, Viet Nam
    Posts
    15

    Default

    Quote Originally Posted by cpanelkenneth View Post
    FastCGI requires some manual configuration for it to work.
    What action need to bring it work ? I have same problem with Fastcgi.

    When account created, I tried to access it through http://ip/~username/ , it show 500 internal server error. But when I parked domain so I can access it normally ???

  4. #4
    Member
    Join Date
    Aug 2008
    Posts
    37

    Default

    Quote Originally Posted by cpanelkenneth View Post
    FastCGI requires some manual configuration for it to work.
    I am having this problem as well. Exactly what configuration do you need to do? And in which file(s)? "some configuration" isn't really that helpful.

    There is almost no information around about running PHP in FastCGI mode with cPanel.

  5. #5
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Sindre View Post
    I am having this problem as well. Exactly what configuration do you need to do? And in which file(s)? "some configuration" isn't really that helpful.

    There is almost no information around about running PHP in FastCGI mode with cPanel.
    There is very little difference in configuring FastCGI for a cPanel environment as for a non-cPanel environment. The chief difference is where to place the configuration. We recommend an include file such as found in the Includes Editor in Apache Setup within WHM.

    The other difference is you set the handler using the Configure PHP and SuExec interface in WHM to FastCGI instead of modifying files manually.

  6. #6
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    If I'm using suphp, is there a performance gain to be had in configuring fastCGI? I've been looking for some way to gain back some of what I lost when I had to give up eaccelerator, to switch to suphp.

  7. #7
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    FastCGI is supposed to be faster than suPHP, although it might depend upon your particular FastCGI configuration.

  8. #8
    Member
    Join Date
    Sep 2007
    Posts
    26

    Default

    Quote Originally Posted by DReade83 View Post
    I've rebuilt Apache to include FastCGI and mod_fcgi, set PHP from DSO to FastCGI, but every site gives me a "Internal Server Error" message. Switching back to DSO and we're OK.

    Is there something I've missed?

    I'm not using SuPHP or mod_security, but I am using eAccelerator and Suhosin.

    Can anyone help?

    Many thanks.
    You have to edit your .htaccess file(s). If you have a memory limit in the .htaccess file you need to remove it or comment it out:

    Example:

    If this is in your .htaccess file:

    php_value memory_limit "512M"

    change to:

    #php_value memory_limit "512M"
    Last edited by McPhil; 03-10-2009 at 01:21 PM. Reason: more info to provide

Similar Threads & Tags
Similar threads

  1. dso vs suphp vs fastcgi
    By Usmeee in forum Optimization
    Replies: 10
    Last Post: 09-05-2011, 08:08 PM
  2. Replies: 2
    Last Post: 06-07-2011, 09:32 PM
  3. dso vs suphp vs fastcgi
    By Usmeee in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-02-2010, 06:31 AM
  4. fastcgi / internal 500's after php upgrade
    By NoAgendas in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 09-02-2006, 02:14 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube