在OVH上更改版本php [英] Change version php on OVH

查看:101
本文介绍了在OVH上更改版本php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是我需要在 http:上的远程服务器上将php版本从4.4.9更改为5.5.//www.ovh.com/

但是我似乎无法实现这个目标!

But i can't seem to be able to achieve this goal!

我尝试了建议的步骤 http://www.ovh.com/fr/g1207.configurer-php-web

并包括以下.ovhconfig文件:

And included the following .ovhconfig file:

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

但是当我通过phpinfo()或命令php -v检查时,它表示我正在使用php 4.4.9版本.

But when i check by phpinfo() or the command php -v, it says that i am using the php version 4.4.9

![在此处输入图片描述] [1]

![enter image description here][1]

我正在尝试运行Symfony应用程序,而版本低于5.3的php无法实现

I am trying to run a Symfony application, which is not possible with a php of version lower than 5.3

我该如何解决此问题?

How do i fix this problem ?

推荐答案

您必须在 /www/ 中创建一个 .htaccess 文件并写入:

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

在FTP的根目录中( /www/ 之前)有一个 .ovhconfig 文件(或创建文件)并写入:

There is a .ovhconfig file (or create it) in the root of your FTP (before /www/) and write into :

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

http.firewall=none
environment=development

然后转到管理器(最好是v3,因为我不确定该功能在新界面中是否可用)> Hébergement> Gestion de l'Accélérateur Géocache> Appuyer sur Valider pour vider le cache. (更多说明此处)

Then go to the manager (v3 preferably because I'm not sure the function is available in the new interface yet) > Hébergement > Gestion de l'Accélérateur Géocache > Appuyer sur Valider pour vider le cache. (More explications here)

如果这不起作用,则应联系OVH技术服务.

If this doesn't work, you should contact the OVH technical service.

这篇关于在OVH上更改版本php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆