Nginx vs Apache & mod_php for PHP and php+fpm vs fastcgi

apache-2.2nginxscalability

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

Best Answer

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.