lbeachmike

Well-Known Member
Dec 27, 2001
306
1
316
Long Beach, NY
cPanel Access Level
Root Administrator
Is it correct that I can simply change any of my server's php handler from suphp to fastcgi without any other configuration changes, permission changes, etc?

Can I simply change back and forth between the two seamlessly? I would like to trial running fastcgi with ecellerator or xcache.

Thanks.

Mike
 

gnutoolbox

Member
Sep 25, 2011
23
0
51
cPanel Access Level
Root Administrator
FastCGI (aka: mod_fcgid) is a high performance alternative to CGI. It has the security/ownership benefits of suPHP in that PHP scripts will run as the actual cPanel user as opposed to ‘nobody’. The difference with FastCGI is that it can drastically save on CPU performance and give speeds close to that of DSO. It can also be used with an opcode cacher like eAccelerator or APC, which can help further speed the loading of pages.

The drawback is FastCGI has a high memory usage. If you like the security/ownership benefits of suPHP and you can afford a major increase in memory usage (meaning you already have a low average memory usage), you may wish to consider using FastCGI
 

lbeachmike

Well-Known Member
Dec 27, 2001
306
1
316
Long Beach, NY
cPanel Access Level
Root Administrator
FastCGI (aka: mod_fcgid) is a high performance alternative to CGI. It has the security/ownership benefits of suPHP in that PHP scripts will run as the actual cPanel user as opposed to ‘nobody’. The difference with FastCGI is that it can drastically save on CPU performance and give speeds close to that of DSO. It can also be used with an opcode cacher like eAccelerator or APC, which can help further speed the loading of pages.

The drawback is FastCGI has a high memory usage. If you like the security/ownership benefits of suPHP and you can afford a major increase in memory usage (meaning you already have a low average memory usage), you may wish to consider using FastCGI
Yes - I have read this summary previously - it appears to be an exact quote of a previous post. However, it does not answer the question that I asked.

My question is whether or not I can change between suphp and fastcgi without changing anything else on the server. I realize that the explanations provided suggest that this is indeed the case, but I would rather get an explicit answer rather leave something to a potentially incorrect interpretation.

Thanks.

Mike
 

MrL22

Active Member
Jul 11, 2003
36
1
158
Tamworth, United Kingdom
I have a few test servers which run clones of a large custom php/mysql site (280Gb) and some wordpress sites which I also host on a live server, I have changed from SuPHP to FastCGI and its seems to be running smoothly but this may be different in your case, I guess its all down to the machine and what is running on it. FastCGI was quite slow at first but speeded up over time, I imagine it was creating a cache...
 
Last edited:

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Normally, FastCGI uses the same file permissions and ownership and suPHP, but I cannot state it would be seamless as sometimes the user runs into PHP coding issues or FastCGI functioning issues with using that handler.

As any handler switch, you would want to perform it during a slow time for your users and tail the Apache error log at /usr/local/apache/logs/error_log location to see if any errors are outputting from sites upon the switch. You would also probably want to have a list of important sites and visit them in a browser to check they are functioning properly.
 

lbeachmike

Well-Known Member
Dec 27, 2001
306
1
316
Long Beach, NY
cPanel Access Level
Root Administrator
Normally, FastCGI uses the same file permissions and ownership and suPHP, but I cannot state it would be seamless as sometimes the user runs into PHP coding issues or FastCGI functioning issues with using that handler.

As any handler switch, you would want to perform it during a slow time for your users and tail the Apache error log at /usr/local/apache/logs/error_log location to see if any errors are outputting from sites upon the switch. You would also probably want to have a list of important sites and visit them in a browser to check they are functioning properly.
Thanks - that's exactly what I would plan to do. From your experience with other users who have moved to FCGI, does it seem to be a smooth transition that is usually glitch-free?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Since my experience is in the ticket system when something goes wrong, it wouldn't be indicative of what normally occurs. I only see when it doesn't work out right :)
 

lbeachmike

Well-Known Member
Dec 27, 2001
306
1
316
Long Beach, NY
cPanel Access Level
Root Administrator
Since my experience is in the ticket system when something goes wrong, it wouldn't be indicative of what normally occurs. I only see when it doesn't work out right :)
A fine point :) Well then, when I do get to giving this a try, I will be certain to report back if it is indeed glitch-free (or not.)

Thanks!

mrk
 

electric

Well-Known Member
Nov 5, 2001
789
10
318
How did your switchover from suphp to fastcgi go? Did you run into any problems? Was the switchover seamless and transparent (to the end-user's websites)?