Change php version to OVH

My problem is I need to change the php version from 4.4.9 to 5.5 on the remote server at http://www.ovh.com/

But I cannot achieve this goal!

I have tried the recommended steps http://www.ovh.com/fr/g1207.configurer-php-web

And included the following .ovhconfig file:

app.engine=php
app.engine.version=5.5
http.firewall=none
environment=production

      

But when i check phpinfo () or command php -v

, it says i am using php version 4.4.9

! [enter image description here] [1]

I am trying to run Symfony application which is not possible with php version below 5.3

How do I fix this problem?

+3


source to share


2 answers


You need to create a file in and write to: .htaccess

/www/

SetEnv PHP_VER 5.5
SetEnv REGISTER_GLOBALS 0
Header set cache-control "no-cache"

      

There is a file at the root of your FTP (or create one) (before ) and write in: .ovhconfig

/www/



app.engine=phpcgi
app.engine.version=auto

http.firewall=none
environment=development

      

Then go to the manager (v3 desirable, because I'm not sure that the function is available in the new interface)> Hébergement

> Gestion de l'Accélérateur Géocache

> Appuyer sur Valider pour vider le cache

. (More explanation here )

If that doesn't work, contact OVH technical service.

+1


source


OVH paths for different PHP versions:

/usr/local/php5.3/bin/php  =>  PHP 5.3.29 (cli) (built: Dec 10 2014 16:59:41)
/usr/local/php5.4/bin/php  =>  PHP 5.4.38 (cli) (built: Feb 26 2015 09:53:00)
/usr/local/php5.5/bin/php  =>  PHP 5.5.22 (cli) (built: Feb 23 2015 13:12:45)
/usr/local/php5.6/bin/php  =>  PHP 5.6.6 (cli) (built: Feb 23 2015 13:13:02)
/usr/local/php7.0/bin/php  =>  PHP 7.0.2 (cli) (built: Feb  8 2016 10:58:42) ( NTS )

      



(from this value)

-1


source







All Articles