S
S
sshz2016-01-27 12:22:39
PHP
sshz, 2016-01-27 12:22:39

What is the best way to optimize a server for WordPress?

Hello.
Friends, now we are using for a loaded site on WordPress: nginx (for static) + apache + wp fastest cache
VPS server 2 cores, 8 GB DDR4, SSD
I want to optimize all this stuff to improve page speed under load. There are many options and specifically applicable to WordPress, it is not clear which option is better.
As I understand it, it is desirable to switch completely to nginx + php_fpm? Is fastcgi_cache necessary? Maybe the fastest cache should be replaced?
Well, in general, without touching WordPress, if there are tips, I will not refuse.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ostin, 2016-01-27
@nitso

From apache it is necessary to get rid - the fact. Only memory is wasted in vain with the already existing nginx.
And there are a lot of articles about general optimization:
https://habrahabr.ru/post/132817/
https://habrahabr.ru/post/57346/
https://www.google.ru/search?q=wordpress%20optimization

I
Igor Vorotnev, 2016-01-27
@HeadOnFire

1. Remove Apache from the bundle
2. Install the extreme Nginx
3. Install PHP 7 (FPM, of course)
4. Install Memcached
5. Replace the database with MySQL with MariaDB 10
6. You can also switch from http to https using the HTTP protocol /2 (SSL itself eats up a chunk of the request time, but the super-fast protocol compensates)
Even with standard configs, it will be noticeably faster while using noticeably fewer resources. Further work is already tuning. You need to look at specific configs, a specific site, logs, and so on. Because all further settings change from site to site. A more detailed consultation is not a subject of discussion on the Toaster, but a subject of direct work with the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question