4 ms·
from what I hear mod_php is faster than fastcgi Those benchmarks certainly back it up. Nginx in front of Apache seems like the best approach. I would like to s
by stanley 17y ago
from what I hear mod_php is faster than fastcgi
Those benchmarks certainly back it up. Nginx in front of Apache seems like the best approach. I would like to see an optimization guide for setting up Apache to process PHP via mod_php. By comparison, I always found optimizing nginx to be far more straightforward than optimizing Apache.
On a sidenote, does it make sense to use HipHop in conjunction with xcache?
Here's what I'm thinking:
nginx > static files
nginx > php > apache + mod_php > xcache > HipHop
- wizard_2 17y agoHipHop will completely invalidate your need for Xcache as you now have an executable instead of php. You can probably get away with nginx for static and proxy it to HipHop'd php for your php. But that's still overkill in most situations. The nginx for static and php-fpm (which runs php as a fcgi) will get you very very far. Wordpress.com for example uses a similar setup (with a hell of a lot of caching in between). Most of my apps aren't bound by php cpu time, I'd only use hiphop to play with personally. =)