Answer the question
In order to leave comments, you need to log in
VPS. Everything slows down on Apache2, flies on nginx, what's wrong?
Hello.
There is a pure VPS (ubuntu 16.04) and a website/cms in php.
Set Apache2+php = everything slows down, the page is loaded in 3-5 seconds.
Nginx+php-fpm = everything flies like on localhost.
What's wrong? Please tell me, this is not the first VPS I am changing, I thought what the limits of the tariff plan are, but it turns out that Apache is like that. Configs and there and there default.
Answer the question
In order to leave comments, you need to log in
The config was still not default, there were my inserts from the previous vps
StartServers 1
MinSpareServers 1
MaxSpareServers 1
MaxClients 3
ServerLimit 3
MaxRequestsPerChild 300
commented out all these lines, everything worked quickly.
If someone comments on these parameters (bad or good) I will be glad, thanks
VPS 512 operatives, 2400 prots
Well, use nginx. Level question: why do I drive so slowly on a tractor, but when I get into a Lamborghini...
I recommend using the Apache+Nginx bundle.
Alternatively, you can configure the config according to this instruction
webmaster Apache2 requires more resources. VPS does not have as many resources as on a local computer. nginx requires much less resources. That's why it's faster on VPS
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question