duanbo6871 2015-05-25 19:57
浏览 32

在OVH上更改php版本

My problem is that i need to change the version of php from 4.4.9 to 5.5 on an remote server on http://www.ovh.com/

But i can't seem to be able to 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 by phpinfo() or the command php -v, it says that i am using the php version 4.4.9

![enter image description here][1]

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 ?

  • 写回答

2条回答 默认 最新

  • duanheye7423 2015-05-25 20:01
    关注

    You have to create a .htaccess file in /www/ and write into :

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

    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
    

    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)

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

    评论

报告相同问题?

悬赏问题

  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败
  • ¥15 树莓派5怎么用camera module 3啊
  • ¥20 java在应用程序里获取不到扬声器设备
  • ¥15 echarts动画效果的问题,请帮我添加一个动画。不要机器人回答。
  • ¥15 Attention is all you need 的代码运行
  • ¥15 一个服务器已经有一个系统了如果用usb再装一个系统,原来的系统会被覆盖掉吗
  • ¥15 使用esm_msa1_t12_100M_UR50S蛋白质语言模型进行零样本预测时,终端显示出了sequence handled的进度条,但是并不出结果就自动终止回到命令提示行了是怎么回事: