K
K
Konstantin2017-10-31 14:49:40
Nginx
Konstantin, 2017-10-31 14:49:40

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

5 answer(s)
K
Konstantin, 2017-10-31
@webmaster

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

A
Anton Mashletov, 2017-10-31
@mashletov

Well, use nginx. Level question: why do I drive so slowly on a tractor, but when I get into a Lamborghini...

A
Andrey Tov, 2017-11-01
@Don_Andretti

I recommend using the Apache+Nginx bundle.
Alternatively, you can configure the config according to this instruction

A
Anton, 2017-10-31
Patsev @chemtech

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

M
myxasa, 2017-10-31
@myxasa

Apache - the last century

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question