【问题标题】:Upgrade php version from 5.2 to 5.3 Joomla将 php 版本从 5.2 升级到 5.3 Joomla
【发布时间】:2014-12-08 03:33:21
【问题描述】:

我们在 Joomla 3 中的新网站至少需要 PHP v5.3 才能运行 Akeeba Next Generation 安装程序。我的任何服务器都运行 PHP 5.2。我已经尝试添加该行

AddHandler 应用程序/x-httpd-php53 .php

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

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

【问题讨论】:

    标签: php-5.3


    【解决方案1】:

    这行不通。您需要将 php 安装到该版本。您是否具有对服务器的 SSH 访问权限?如果你做的是什么平台?大多数 Web 服务器在 Linux 上运行,如果是这种情况,您需要在 linux 服务器上升级 php。在 Windows 上,您需要 卸载并安装php到最新。

    一个, 如果是 centos 或 fedora,则需要启用正确的 repo 并且需要发出

    要安装,首先必须将你的CentOS/RHEL版本对应的Webtatic EL yum仓库信息添加到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 支持..还没有回复。
    猜你喜欢
    • 2010-12-09
    • 2012-07-23
    • 1970-01-01
    • 2012-07-27
    • 2011-10-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多