2014-12-08 143 views
0

我们在Joomla 3中的新网站至少需要PHP v5.3才能运行Akeeba Next Generation安装程序。任何我的服务器运行PHP 5.2。我曾尝试加入一行将php版本从5.2升级到5.3 Joomla

AddHandler的应用程序/ x-的httpd-php53 .PHP

在我的.htaccess而是它下载index.php文件..托管提供的是Doteasy。我们如何去升级PHP?

任何帮助将不胜感激。谢谢。

回答

0

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

这就是问题..我没有访问SSH ..我曾尝试联系Doteasy支持..没有反应呢。 – kaluka19 2014-12-08 05:06:32