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.

    评论

报告相同问题?

悬赏问题

  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?