Many websites makes use of php, there are many versions of php as well. For shared hosting, the php needs to be defined within the hosting itself.

Depending on what type of hosting package you have, you would be defining the php version from the .htaccess or the .ovhconfig file. For older hosting packages, this would be done via the .htaccess method. For the current hosting packages, we will be changing the php version through the .ovhconfig environment.


The .htaccess file needs to be defined within the hosting path of /www/.htaccess, this is the location where the hosting package will read the required information.

To define the php version we will be using:

SetEnv PHP_VER 5

There are many versions of php and we can define other versions with SetEnv PHP_VER 5_4.


The .ovhconfig file will exist in all current shared hosting packages. The file can be located in the directory of /www/.ovhconfig. The file will have the following values:

app.engine.version=5.4  5.6 is recommended

You can specify different versions of php. The versions include: 5.3, 5.4, 5.5 and 5.6. Detailed information on the php can be found at:

The minimum requirement for php will be set as 5.6, however it would be recommended to use php version 7.2