开发者

Wordpress not recognising correct PHP version for update

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 updat开发者_JS百科e Wordpress now as the "Update" button is no longer showing?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜