Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

It seems to be universally recommended to run Nginx as a reverse proxy in front of Apache but there seems to be a devision in opinion on whether Apache + mod_php or Nginx are better for serving dynamic requests and ditto with php+fpm vs fastcgi when using Nginx to serve PHP.

Can anyone offer any good pointers or advice?

Thanks,

Ian

share|improve this question
add comment

1 Answer 1

you can use php-fpm instead of fastcgi. I use nginx + php-fpm for my site with about 40 000 visitors and about 1 000 000 pages per day.

share|improve this answer
    
My question was why would you do that though? - what are the advantages of php-fpm over fastcgi? –  ichilton Jan 27 '11 at 13:09
2  
@ichilton PHP-FPM is fastcgi, it's literally an an acronym of PHP Fastcgi Process Manager. The FPM project was born to fix mistakes in the fastcgi process handling of vanilla PHP. The improvements in stability and features such as the slow log, pools etc is just hugely useful in a lot of situation. –  Martin Fjordvald Jan 27 '11 at 14:59
    
Ohhh, I see - thanks! –  ichilton Jan 28 '11 at 12:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.