Best Apache-Settings for a Wordpress-Site

Hi there,

I have a VPN, hosting on this server 3 Wordpress pages. I just want to ask you, if there are maybe recommended settings for the Apache Webserver? At the moment all these modules are activated:


I will follow your comment because I am also interested in increasing the performance of the VPS, I have been looking at implementing http/2 or http/3 or also Litespeed, I don’t know the truth.
But for the type of vps I have located in Germany it takes me about 3.5 seconds to load my website and I would like to be able to get some more performance out of it.
My vps:
8Gb Ram
Four Cores
200Gb SSD
Port 200 Mbit/s
And google gives me a very low performance.

Hello I also had problems with a website. It was not wordpress, but owner. In the end, here are the settings that I applied.

-If your problem is related to mysql queries: use memory-caching system (Memcached or Redis), see also (mysql performance tuning) and also mysqltuner

-If it relates to image loading: use apache mod_pagespeed and / or a SCRIPT JS for image loading (LAZY LOAD SCRIPT JS)

-If you have an apache webserver, apache limits connections at the same time for resource loading and per host.

try using a CND or else create some submoninios


Sounds a little bit familiar for me, you’re hosting with Contabo?

exactly, it’s theirs

No. I am using Azure from Microsoft

I have the same “problem” with them.
I think you’re using GTMETRIX to get this result.
For me its quiet amazing, that when I use Pingdom and use the London location, I have amazing ~700ms loading time xD

For me in the Pingdom, the result is as follows:
And if I am using Gtmetrix, why do I cry if I use google?

There’s a list on Stackexchange discussing Apache modules and Wordpress that may help you figure out which modules are actually required for Wordpress and for your installation.

It is a shorter list than the one shown in the first post, and should get you started.

This command (CentOS) is useful figuring out dependencies between modules:

httpd -DDUMP_CONFIG -k start

Recently, I looked at similar problem with another CMS, processwire, and ended up with the following list of modules. Some of these are not specific to the CMS and these would likely also not be required by Wordpress, but I offer this as an example of modules required by a typical PHP based CMS.

  • alias_module
  • authz_core_module
  • authz_host_module
  • autoindex_module
  • dir_module
  • log_config_module
  • logio_module
  • mime_magic_module
  • mime_module
  • negotiation_module
  • rewrite_module
  • setenvif_module
  • socache_shmcb_module
  • unixd_module
  • mpm_event_module
  • proxy_module
  • proxy_fcgi_module
  • ssl_module
  • systemd_module
  • cgid_module
  • php7_module


The hosting is important, but is not the key. I have two webpages hosted in my house in virtualmin, but before that i hosted them in virtualmin i hosted them in a raspberry with iRedMail. In my raspberry i had a score in google insights of 94 (computer website. The mobile website had a score of 74) and is the same score that i have in virtualmin.

The key is optimize wordpress, enable caching and try to use only internal links (modules that charge all the resources from your webpage, no from other webpages).

always prefer to remove all 3rd parties (yes, 3rd party cdn too), cause in reality they’re slowing the website… use internal links for everything if possible, avoid ganalytics/remote gfonts, and always use some caching mechanism for wp.

also remove any unwanted apache modules , eg. dav* if you dont use it…
try php-fpm + apache, and tune fpm pool(s) according to your server specs/needs.
and use http/2.

we’re running ~100 wp sites on an old server without ssd disks, and it performs much better in tests than some ssd servers from other hosts… so like already said above, hosting is not the key.

another online test tool :

1 Like

This is very important. I use the following modules to enable caching in my Wordpress.

  • Async JavaScript
  • Autoptimize
  • Cache Enabler
  • Jetpack by
  • WP Admin Cache

I Allow each module to optimice one feature (Some of this modules wants to optimice the same feature, so you have to be careful).

Caching and have a clean code are the key to a fast wordpress. The configuration of the server is important, but when somebody asks about how to tune the server to speed up the webpage, i usually suppose that the problem is not the server, but the code.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.