3 ms·
Speed is one of the reasons to stay on apache. Using nginx to serve static and using php_mod vs fpm-php will be faster as long as you disable directory level .
by wolco 9y ago
Speed is one of the reasons to stay on apache. Using nginx to serve static and using php_mod vs fpm-php will be faster as long as you disable directory level .htaccess
- pmlnr 9y agoIf you're using php-fpm over unix socket, I doubt this is true, please show some stats.
- Veratyr 9y agoDoes this apply to anything other than PHP? Not saying it's not significant, just curious. Does mod_wsgi outperform uwsgi with uwsgi_pass for example?
- Thaxll 9y agoNginx is faster than Apache, you're talking about PHP which is very different. php-fpm is not part of Nginx.
- xorcist 9y agoNginx should be faster in theory, but it's kind of hard to show in practice as the actual http parsing is just so much faster than anything else. You have to really tune them for for benchmark scenarios to see any kind of difference. What your vendor supports and what you are most comfortable with configuring should decide which one you run. PHP, as you say, is something else entirely. It's so much slower than your http server so the latter doesn't matter at all.
- jimjag 9y agoNot all the time... Before, when nginx was event and Apache was prefork or worker, yeah. But with the Event MPM, performance is pretty much neck-and-neck.