Does anyone here run php as a cgi application? I am asking because a friend has setup my server with fastcgi + php5, but I am not sure what the advantages of it are besides having a smaller memory foot print, being more secure, and allowing each vhost to have it's own php.ini file. Also, I have a few issues with it occasionally. It hangs and uses up alot of resources and spikes cpu/mem usage, but I cannot figure out why. I get errors along the lines of "incomplete headers" and the php-cgi process in top reads state pfault. It usally happens when mysql is restarted, possibly due to php still having open connection with mysql, but I am not sure, lately it has happend a few times randomly.
Does anyone here use fastCGI with php5? If so, what’s your reason?
Also, I would like to understand how it works - but there are very, I mean very, few guides that explain how to set it up or how it actually works.
mod_php has some very serious security issues, ie all the users run as nobody and can read each other's PHP files.
I'm aware of that, it's not an issue for me as I do not host for anyone else, but myself. All of my sites are mine and are run under the user WWW. I was asking how mod_fcgid and if anyone has any experience with it.