#1 (permalink)  
Old 11-20-2009, 08:29 AM
Registered User
 
Join Date: Jul 2008
Posts: 181
ASTRAPI is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-20-2009, 09:49 PM
cPanelDon's Avatar
cPanel Staff (Administrator)
 
Join Date: Nov 2008
Location: Houston, Texas, U.S.A.
Posts: 1,511
cPanelDon is on a distinguished road
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
__________________
For hands-on assistance please reference our new support information page: Where should I go for support?
cPResources: Support Options - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation
-- cPanelDon - Donald Holl, Technical Analyst, cPanel Technical Support
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-21-2009, 10:40 PM
Registered User
 
Join Date: Jul 2008
Posts: 181
ASTRAPI is on a distinguished road
The easiest way to go from suphp to DSO?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-23-2009, 06:03 PM
cPanelDon's Avatar
cPanel Staff (Administrator)
 
Join Date: Nov 2008
Location: Houston, Texas, U.S.A.
Posts: 1,511
cPanelDon is on a distinguished road
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
__________________
For hands-on assistance please reference our new support information page: Where should I go for support?
cPResources: Support Options - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation
-- cPanelDon - Donald Holl, Technical Analyst, cPanel Technical Support
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
custom php.ini with php handler set as cgi johny_gjx cPanel and WHM Discussions 0 02-16-2009 03:54 AM
php.ini per dir with php running as cgi vesko cPanel and WHM Discussions 3 04-18-2008 08:39 AM
make: *** [sapi/cgi/php-cgi] Error 1 on apache update quicklyweb cPanel and WHM Discussions 4 09-27-2007 08:32 AM
PDO+PDO_MYSQL on php5.2.1+php-suexec (php-cgi)? PondRicefied cPanel and WHM Discussions 3 05-16-2007 09:36 PM
CGI problam, user can add 'AddHandler cgi-script .cgi .pl' running CGI? Jedia cPanel and WHM Discussions 0 02-14-2005 09:49 PM


All times are GMT -5. The time now is 08:17 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc