OVH Guides

Modifying the configuration of a Web Hosting plan

Find out how to modify the configuration of an OVH Web Hosting plan

Last updated 25th September 2018

Objective

There are a range of different configurations you can use for OVH Web Hosting plans. Whether you are creating a blog or an online store, sharing your hobby or promoting your work, you can host whatever website you want on your OVH Web Hosting plan, provided that it is compatible with our infrastructures’ configurations.

Find out how to modify the configuration of an OVH Web Hosting plan from the OVH Control Panel.

Requirements

Instructions

Changing the configuration of your Web Hosting plan is a delicate procedure. Any mistakes configuring it could make your website inaccessible as a result. By learning more about the impact of making configuration changes, you can get a better understanding of the changes you will make.

When you modify your Web Hosting plan’s configuration, you will change the configuration used by your website, too. Although our infrastructures offer a range of configuration types, you will need to ensure that the configuration type you have selected is compatible with your website.

Before you start making any changes, please ensure that the changes you are about to make will not make your website inaccessible. If you have any doubts about what you need to do, or encounter any difficulties, we recommend contacting a specialist provider. We will not be able to assist you ourselves. You can find more information in the “Go further” section of this guide.

Modify your Web Hosting plan’s configuration via the OVH Control Panel

Step 1: Access the Web Hosting plan’s configuration management.

First of all, log in to the OVH Control Panel, click Web Hosting in the services bar on the left-hand side, then select the Web Hosting plan concerned. Click on the ... button, then select Modify configuration.

hostingconfiguration

If the Modify configuration button is greyed out, it may be because of an ongoing global PHP version verification. If this is the case, a blue wheel will appear next to the version, indicating that a verification is in progress. Wait a few minutes for the Modify configuration button to become accessible again.

hostingconfiguration

Step 2: Check your Web Hosting plan’s configuration.

In the window that pops up, you can pick from two options. Select the one corresponding to the action you want to carry out, then click Next.

Choice Details
“Return to a previous configuration” After you have selected this option, choose the configuration to restore on the Logs choice side. This option will not be available if you have not made any configuration changes in the past.
“Modify the current configuration” Once you have selected this option, choose the modifications you would like to make to the configuration from the fields that appear. If required, you can read more about them by going to the View the configurations available section in this documentation.

When you change the runtime environment for your Web Hosting plan, PHP sessions are automatically restarted.

Once you are ready to do this, click Confirm to apply the modifications. Wait a few minutes for the process to complete.

hostingconfiguration

View the configurations available.

When you modify your Web Hosting plan’s configuration, you can choose from a range of configuration types. From this point onwards, you can follow the guide section relevant to the configuration type you would like to use.

Runtime environment

By changing the runtime environment, you can edit certain technical values for your Web Hosting plan. Before you start making any changes, ensure that the runtime environment you want to apply is compatible with your website.

Environment Legacy stable testing jessie.i386
Linked image Legacy jessie.i386 jessie.i386 jessie.i386
Minimum PHP version 4.4 5.3 5.3 5.3
Openssl 0.9.8o 1.0.1k (TLS1.2 compatible) 1.0.1k (TLS1.2 compatible) 1.0.1k (TLS1.2 compatible)
Imagick PHP extension - Yes Yes Yes
Memcache PHP extension (PHP 5.6) Yes Yes Yes Yes
Memcached PHP extension (PHP 5.6) - Yes Yes Yes
Mongo PHP extension (PHP 5.4, 5.5, 5.6) - Yes Yes Yes
Mysqlnd extension (in utf-8 only) - Yes Yes Yes
Redis extension - Yes Yes Yes
Opcache Yes Yes Yes Yes
Python 2.6 2.7 and 3.4 2.7 and 3.4 2.7 and 3.4
Ruby 1.8.7 2.1.5 2.1.5 2.1.5
Rails 2.3.5 4.1.8 4.1.8 4.1.8
Perl 5.10 5.20 5.20 5.20
git 1.7.2.5 2.1.4 2.1.4 2.1.4

The ‘legacy’ environment may be useful for older websites that still use old PHP versions. However, we strongly advise using a stable environment that has the latest updates. Ensure that your website is compatible before you make any changes.

Once you have chosen your runtime environment, you can change it in two different ways:

PHP version

There are now several versions of PHP programming language. As usual, version developments include different patches, and also add or remove features. OVH offers the very latest PHP versions, and you can view a list of them here: https://www.ovh.co.uk/web-hosting/php.xml.

Because some features cannot be maintained in newer versions, please ensure that the new PHP version you want to use is compatible with your website before you start making any changes.

There are several ways you can modify your Web Hosting plan’s PHP version:

Generally, if you want more information on changing from one PHP version to another, please follow the instructions in our guide on Configuring PHP versions on an OVH Web Hosting plan.

PHP engine

With the PHP engine you use, you can enable or disable the PHP accelerator (PHP-FPM). It has been adapted to suit our infrastructure with the aim of accelerating the execution speed for PHP scripts. In comparison, the PHP accelerator (PHP-FPM) offers up to seven times faster performance than using the phpcgi motor.

There are two ways of modifying the PHP motor used by your Web Hosting plan:

  • Via the OVH Control Panel. Use the instructions provided in the Modify the Web Hosting plan’s configuration via the OVH Control Panel section of this guide. To activate the PHP accelerator (PHP-FPM), choose ‘php’ as a motor. To deactivate it, choose phpcgi.
  • Editing the .ovhconfig file. This method is more technical, and you will need to be connected to your storage space.

Mode

By choosing a mode, you can manage how your website’s cached static files behave (eg.. images), as well as how PHP errors are processed (generally useful when your website displays a blank page, for example). There are two modes you can activate:

Mode Caching static files Processing PHP errors
Production Maximises caching for static files on internet browsers. PHP errors will not appear on your website.
Development No caching is applied. PHP errors will appear on your website.

There are two ways of modifying the mode used by your Web Hosting plan:

Go further

Join our community of users on https://community.ovh.com/en/.


These guides might also interest you...