This is a little off topic.. but since we tend to test things locally (localhost) first prior to moving on to remote servers, I have questions regarding Apache setups.
I was looking into what exactly fastCGI is and what mod_php is. The wikipedia results seems pretty descriptive.
So if I understand this properly, fastCGI is an overhauled version of the orginal legacy CGI, and as a result is faster and can handle more webpage requests more easily.
mod_php on the otherhand is an embedded interpreter, which can interface with the server more quickly (and handle more webpage requests as well?).
According to the article, the downfall to mod_php is that it cannot be restarted independantly while fastCGI can. And as a result, many hosting providers prefer this. I wonder about a few things.
In what conditions would a hosting provider need to restart fastCGI? Is this for say PHP upgrades for instance? The article refers to things like 'facilitates per-application security policies — important for ISPs and web hosting companies.' Policies meaning?
Is there any benefits whatsoever of whether you install Apache on your local machine as fastCGI or going the route of module?
And tied into the previous question, as a result, does it make a difference whether your hosting provider runs Apache as fastCGI or as a mod?
About the restarting issue. I've always been able to do an "apachectl restart" or an "/etc/init.d/apache reload" without causing any downtime on my server.
As far as FastCGI, I've never used it (sorry.)
When in doubt, read the manual: PHPMySQL For beginners: PHP 101PHP + MySQL 101Google Forum etiquette.: See FAQs (Typically found in sticky posts: top posts) Avoid asking questions like: "It's not working..." (Describe how it's not working!) "Do you know of a script..." (This is a forum for PHP developers.)
Downtime is the same with mod_php and fastcgi when you restart the server.
A big benefit for using php as cgi is that it is executed as the user, not www(or apache whatever). So bye bye for permission issues and chmodding write permissions to world Usually if you install software, they will work straight, thanks to php processes being run by the user, not webserver. Offcourse there can be software that dont work well with cgi but they are quite rare.
We have ourselves servers with both and nowdays I myself like to do all my projects with cgi-one. . Speed is not an issue atleast with mod_fcgid that we use. Only downside can be the memory that cgi might consume a little more(but only a little).
OK.. so I suppose then that it's ok either way (my apache on localhost is fastCGI). I was just wondering about any larger discrepencies (or differences in general) between the two that might lead one to lean towards one way or the other.. I'm not familiar with mod_fcgid, but I'll have a look into it.