This can be done from "PHP Configuration" under your Apache settingsHow to change PHP install from being CGI to Apache Module?
Best way to do it with cPanel?
# /usr/local/cpanel/bin/rebuild_phpconf 5 none dso enabled
vBulletin runs best under CGI/FastCGI (FCGI) w/X-Cache actuallyThe only reason I was asking was vBulletin says for best optimization to do this:
Upgrade to PHP 5.2.12 and install as apache module and NOT CGI
Do your clients report or discuss any issues with vBulletin when running php as CGI? vB staff is "down" on cgi but they have not offered any details as to why.vBulletin runs best under CGI/FastCGI (FCGI) w/X-Cache actually
(There is a lot of technical reasons for this but the simplified basics of that the PHP engine start up is moved off of Apache and the connection and process handling is changed to a non-blocking design)
I deal with a lot of large scale vBulletin forum clients and what I just said is typically the most popular requested configuration among them all.
On the contrary, vBulletin is heavily in favor of "CGI" actually and also highly recommend it as the solution to just about everything and if I did not mention this earlier their own support is who told my clients to switch over to "CGI" in each case and that always helped greatly!Do your clients report or discuss any issues with vBulletin when running php as CGI? vB staff is "down" on cgi but they have not offered any details as to why.
To throw in another wrench to the topic of PHP being complicated, every PHP type except DSO and sometimes FCGI shows up as just plain "CGI" when you look at your phpinfo() screen even though they are different so trying to tell what kind of PHP you are using cannot be done from the phpinfo() screen reliably other than simply telling whether a server is DSO based or not and that is pretty much all you can do there.Been pulling my hair out with the working with Impex then vB. vB did ok in testing but yikes, it definitely does not like straight CGI.
# /usr/local/cpanel/bin/rebuild_phpconf --current
You're welcomeThis whole php handler issue has taken much to get my head around. Your post helps fill in blanks.
The operational aspect of FCGI and SuPHP is identical and you can usually switch back and forth between these two without having to make any changes to your web site scripts and applications.I seriously considered switching to CGI/FastCGI (FCGI)but Php as suphp with suexc is a simple config in WHM. In this mode vB is running fine now although Impex or vB in CGI mode may have buggered mysql. Joomla and kayako are running fine as well.
You have to enable FastCGI in BOTH PHP and Apache options in EasyApache in order to have FCGI based PHP available to your server.- Turn ON Mod FCGID
- Turn ON Fastcgi
To be perfectly honest, I recommend anyone compiliing for FastCGI1. Do you recommend turning OFF Mod SuPHP? Or leaving it on?
# /usr/local/cpanel/bin/rebuild_phpconf 5 none fcgi enabled
# /usr/local/cpanel/bin/rebuild_phpconf 5 none suphp enabled
Speaking from a security point, having Suhosin installed and is a good idea.2. What about Suhosin? Off or on?
That's great. Do per-directory php.ini configurations work with FCGI just as they do on SuPHP?If you build your system with both FCGI and SUPHP, you can switch between them in a heartbeat without having to recompile your server and I have found this very useful on many, many occasions.
Yes, but unlike SuPHP it is not as easy to disable which is a secondary reason why I don't generally recommend FCGI for commercial shared hosting but for single sites or more privately controlled sites, then FCGI is the more ideal choice in many cases.That's great. Do per-directory php.ini configurations work with FCGI just as they do on SuPHP?
|Thread starter||Similar threads||Forum||Replies||Date|
|K||Changes to hosts file - cPanel/WHM||Workarounds and Optimization||1|
|R||(Ask) Change Webmail Logo||Workarounds and Optimization||10|
|A||Array Disk Name Changed to /dev/m127||Workarounds and Optimization||7|
|N||MariaDB won't start when making change to my.cnf||Workarounds and Optimization||2|
|T||change php and apache priority||Workarounds and Optimization||4|