這是行不通的。你需要將PHP安裝到該版本。你有SSH訪問服務器?如果你做什麼平臺呢?大多數網絡服務器都運行在Linux上,如果出現這種情況,您需要在Linux服務器上升級php。在Windows上,您需要將 卸載並安裝最新的php。
一個, 如果是的CentOS或Fedora,你必須激活正確的回購和需要發出
要安裝,首先你必須添加相應於你的CentOS/RHEL的Webtatic EL yum軟件庫信息版本百勝:
的CentOS/RHEL 7.x版:
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
CentOS/RHEL 6.x:
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
CentOS/RHEL 5.x:
rpm -Uvh https://mirror.webtatic.com/yum/el5/latest.rpm
Now you can install php by doing:
yum install php54w
If you would like to upgrade php to this version it is recommended that you check that your system will support the upgrade, e.g. making sure any CPanel-like software can run after the upgrade.
Unless you know what you are doing, it is risky upgrading an existing system. It’s much safer to do this by provisioning a separate server to perform the upgrade as a fresh install instead.
If you know what you are doing, you can upgrade PHP by:
yum install yum-plugin-replace
yum replace php-common --replace-with=php54w-common
It will likely give you a message 「WARNING: Unable to resolve all providers …」. This is normal, and you can continue by tying 「y「. You will be given a chance to see what packages will be installed and removed before again being given a chance to confirm.
或
如果一個Debian的Ubuntu Linux操作系統dist你需要發出
*this will be the easiest option. For PHP 5.4.x run the command:*
sudo add-apt-repository ppa:ondrej/php5-oldstable
or for PHP 5.5.x run:
sudo add-apt-repository ppa:ondrej/php5
And then update your packages:
sudo apt-get update
sudo apt-get upgrade
這就是問題..我沒有訪問SSH ..我曾嘗試聯繫Doteasy支持..沒有反應呢。 – kaluka19 2014-12-08 05:06:32