Community Forums
Connect with us on LinkedIn
Community Notice
  
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    254

    Smile Php as cgi

    Hello

    I am trying to tune my server so i can get the best performance for my forum (php files and a few graphics) and my datacenter recomend me to use php as cgi.

    I need your opinion if that helps and is any minus in this configuration and what i have to do to use that php as cgi?

    Thank you

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

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by ASTRAPI View Post
    I am trying to tune my server so i can get the best performance for my forum (php files and a few graphics) and my datacenter recomend me to use php as cgi.

    I need your opinion if that helps and is any minus in this configuration and what i have to do to use that php as cgi?
    If performance is the only requirement and security is of lesser concern (e.g., such as if there is only one account on the entire server, dedicated to hosting just one or just a few sites), then I would consider using Apache DSO as the PHP handler.

    If a minimal performance hit is acceptable or if security is a more important requirement (e.g., such as if there are multiple accounts and web sites on the server, like when in a shared hosting environment), then I would consider using SuPHP as the PHP handler; this will run PHP as CGI but via SuPHP for significantly better security than when using PHP as Apache DSO.

    I recommend reviewing the following documentation for more in-depth details and comparisons between the available PHP handler options:
    ApachePHPRequestHandling < EasyApache3 < TWiki

  3. #3
    Member
    Join Date
    Jul 2008
    Posts
    254

    Default

    The easiest way to go from suphp to DSO?

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

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by ASTRAPI View Post
    The easiest way to go from suphp to DSO?
    If already using SuPHP I recommend to continue using it for the security benefits, but if needing to switch to a different the PHP handler configuration this can be accomplished via WHM at the following menu path:
    WHM: Main >> Service Configuration >> Apache Configuration >> PHP and SuExec Configuration
    Documentation: Configure PHP and SuExec

Similar Threads & Tags
Similar threads

  1. Individual php.ini files for PHP FCGI and PHP CGI
    By Miraenda in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-22-2011, 09:55 AM
  2. suPHP requires PHP w/ CGI or PHP as CGI?
    By fkatzenb in forum Optimization
    Replies: 5
    Last Post: 01-01-2010, 05:47 AM
  3. 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
  4. 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
  5. Replies: 0
    Last Post: 02-14-2005, 10:49 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube