Optimize WordPress performances on OVH shared hosting

 

Acceleration as derivative of velocity along trajectory

With no added cost, why not speed up?

With these simple steps, you can significantly improve the performances of your OVH hosted WordPress.

I recommend that you benchmark your site performance before performing any changes to be able to measure the improvement.

Step1: Switch to PHP-FPM

As described in the OVH documentation, it is now possible to request your site to be handled by PHP-FPM granting better performance than the default handler.

To do so, create .ovhconfig file at the root of your site. eg.  /www/.ovhconfig

 /www/.ovhconfig

Step2: Enable compression and browser caching

This is done in the .htaccess file at the root of your site. eg. /www/.htaccess

Note that I keep the SetEnv instructions as a fallback.
See more about the configuration of the .ovhconf in the official documentation (French)

/www/.htaccess

SetEnv SG_DEFAULT_PHP_VERSION 5

Leave a Reply