这是行不通的。你需要将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