Hacker News new | ask | show | jobs
by asto 5269 days ago
Nginx + php-fpm is MUCH faster than a vanilla apache httpd + php stack. The magic though, is not just speed. It's also the feature-set. I'm working on a pyramid(pylons) project right now and will be using nginx to load-balance the wsgi server instances and to serve static content. I don't think I could use apache for that. The configuration for nginx looks neater as well (my personal opinion)
1 comments

Are you sure about that?

Benchmarks on my projects show that the difference is insignificant. Since I currently do not have memory constraints I am still using nginx + apache with mod_php.

I remembered the benchmarks as being well in nginx's favour but it seems I was mistaken. As maratd has noted above, apache with mod_php is faster.

But like I said, nginx is great for doing loads of things and I sort of "quit php" recently so I don't really care about php performance anyway.