Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    192

    Default suPHP requires PHP w/ CGI or PHP as CGI?

    I have been told to increase server performance, that I need to run PHP as an apache module, not CGI. However when moving thru the EasyApache steps, it appears that suPHP requires PHP as CGI? I cannot find a straight answer on this.

    I want to leave suPHP checked but want to uncheck the CGI box under PHP.

    Thanks,
    Frank

  2. #2
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    192

    Default

    Quote Originally Posted by fkatzenb View Post
    I have been told to increase server performance, that I need to run PHP as an apache module, not CGI. However when moving thru the EasyApache steps, it appears that suPHP requires PHP as CGI? I cannot find a straight answer on this.

    I want to leave suPHP checked but want to uncheck the CGI box under PHP.

    Thanks,
    Frank
    NVM. I did find the answer: suPHP - FAQ

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,553
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by fkatzenb View Post
    I have been told to increase server performance, that I need to run PHP as an apache module, not CGI. However when moving thru the EasyApache steps, it appears that suPHP requires PHP as CGI? I cannot find a straight answer on this.

    I want to leave suPHP checked but want to uncheck the CGI box under PHP.

    Thanks,
    Frank
    The CGI option for PHP is required in order to use SuPHP. Switching the PHP handler to Apache DSO (mod_php) may help with performance but at the risk of decreased security. It is not required to disable the CGI option simply to use Apache DSO (mod_php) as the handler. It is possible to have support compiled-in for multiple PHP request handlers allowing to change them later without re-running EasyApache.

    Related menu path in WHM:
    WHM: Main >> Service Configuration >> Apache Configuration >> PHP and SuExec Configuration
    Documentation: Configure PHP and suEXEC

    For additional verbose details and information please refer to the following documentation:
    Apache PHP Request Handling
    Configuring PHP and suEXEC from the Command Line

  4. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,553
    cPanel/Enkompass Access Level

    DataCenter Provider

    Arrow Friendly Moderator Note

    I have moved this thread into the Optimization forums area so that it receives more relevant attention and discussion.

  5. #5
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    192

    Default

    Thanks for the support. I think I will just stick with the way things are now. I am not having performance issues but just wanted to optimize the most I could now instead of later.

    Plus I need to learn more about a lot of this first.

    Thanks,
    Frank

  6. #6
    Member
    Join Date
    Feb 2007
    Posts
    271

    Default

    Don't use CGI, compile with fCGI.

Similar Threads & Tags
Similar threads

  1. suPHP requires PHP w/ CGI or PHP as CGI?
    By fkatzenb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-31-2009, 05:47 PM
  2. Security Problem when php run as cgi or suphp !!
    By ktjm in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-15-2008, 03:30 AM
  3. PHP SuPHP or PHP CGI
    By oshs in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-20-2008, 01:58 PM
  4. Can't build Apache with php - CGI suPHP
    By Misiek in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-15-2007, 11:10 PM
  5. make: *** [sapi/cgi/php-cgi] Error 1 on apache update
    By quicklyweb in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-27-2007, 09:32 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube