Does FastCGI work with PHP?

does FastCGI work with PHP? It looks like some people working with Ruby on Rails have problems with FastCGI, but is that good with PHP?

+1


a source to share


4 answers


Does PHP work with FastCGI? [FastCGI Official FAQ]



+5


a source


I'm using FastCGI (via php-cgi) with Cherokee for PHP and it's just great. No problems.

I would definitely recommend installing xcache at the same time. The performance boost will result in your socks being removed the next week.

I just saw you asking about Apache in one of the comments. I don't know why you would choose FastCGI over mod_php. The performance difference would be almost invisible, but I'm sure mod_php will be slightly faster (and a ton easier to configure).



Okay, I honestly thought it was. Then I read the following: http://www.gnegg.ch/2006/08/mod_php-lighttpd-fastcgi-whats-fastest/

And it looks like Apache + FastCGI is faster than Apache + mod_php. Odd.

+2


a source


Lighttpd uses FastCGI by default for PHP as the only option is to use CGI and it works flawlessly.

+1


a source


We run our internal intranet application using PHP and lighttpd using fastcgi and it works without issue.

Find a good tutorial here (Linux): http://www.cyberciti.biz/tips/lighttpd-php-fastcgi-configuration.html

+1


a source







All Articles