doucan1996 2011-08-17 01:51
浏览 335

Wordpress无法识别正确的PHP版本以进行更新

I have a Wordpress install on Godaddy that was on PHP4.

I have shifted the Godaddy programming language to PHP 5.2 but the Wordpress update page still shows this error:

You cannot update because WordPress 3.2.1 requires PHP version 5.2.4 or higher. You are running version 4.4.9.

The Godaddy account says PHP 5.2 is being used.

How can I update Wordpress now as the "Update" button is no longer showing?

  • 写回答

1条回答

  • douchuang1852 2011-08-17 02:18
    关注

    Even though GoDaddy may offer PHP5, it is something you have to set in your .htaccess file at the root of your site.

    Add this to the top of your .htaccess file:

    AddType x-mapp-php5 .php
    AddHandler application/x-httpd-php5 .php
    AddHandler cgi-php5 .php
    

    NOTE: you may not need the AddType line, if your site gives a 500 error, then remove that line.

    评论

报告相同问题?

悬赏问题

  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站