【发布时间】:2017-01-06 17:44:30
【问题描述】:
我的系统上有一个过时的 PHP 版本,因此尝试从 5.5.9 升级到 5.6。
我在我的 Digital Ocean Ubuntu droplet 上按照以下步骤操作:
我安装了 Ondřej Surý 的 PPA 并选择了 5.6 以及其他与主要相关的包,例如 XML 包。
当我在我的服务器上执行php -v 时,它会说
PHP 5.6.29-1+deb.sury.org~trusty+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
这向我表明更新已通过。
但是当我重新启动我的 apache 服务器并检查错误日志时,它说
Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.20 configured -- resuming normal operations
我相信我服务器上最新版本的 Magento 给了我这个错误 (HTTP 500),因为它使用了错误版本的 PHP...
我该如何解决这个问题?谢谢。
【问题讨论】: