Answer the question
In order to leave comments, you need to log in
Does it make sense to switch from Apache + mod_php + nginx to nginx + php-fpm?
there is a VPS server 2core/2GHZ/512mb with Apache with PHP as an Apache module and nginx to return statics, this config serves a PHP site with 6000+ uniques per day. There are still enough resources, but I want it to be more economical and faster. Should I bother with nginx + php-fpm? Judging by the benchmarks, the growth is not strong, plus you will have to fool around with rewrites, htaccess now has a page and a half of rewrites. Pages are now generated in 0.5-1.5 seconds and most of them are probably queries to the database, of which there are 5-10 per page. XCache is used as a PHP accelerator. Is the game worth the candle?
Answer the question
In order to leave comments, you need to log in
That's when the resources cease to be enough - then the increase will be visible to the naked eye.
There's a meaning. Even if there is no performance gain, at least the entire configuration will become simpler and prettier. Apache is clearly an extra link.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question