安装PHP7后出现内部服务器错误,如何修复?

安装PHP7后出现内部服务器错误,如何修复?,php,magento,internal-server-error,php-7,Php,Magento,Internal Server Error,Php 7,我们在服务器上运行PHP5.4。服务器的操作系统是CentOS。不幸的是,对于我们想要安装的CMS(Magento 2),我们需要更高版本 因此,我按照上的步骤安装了PHP7。(在一些命令中,我将sudo放在它前面,在步骤3中,我添加了--skip break,因为没有它它它就无法工作。) 安装过程的结尾如下所示: Installing : php70u-common-7.0.8-1.ius.centos6.x86_64 1/15 Insta

我们在服务器上运行PHP5.4。服务器的操作系统是CentOS。不幸的是,对于我们想要安装的CMS(Magento 2),我们需要更高版本

因此,我按照上的步骤安装了PHP7。(在一些命令中,我将
sudo
放在它前面,在步骤3中,我添加了
--skip break
,因为没有它它它就无法工作。)

安装过程的结尾如下所示:

    Installing : php70u-common-7.0.8-1.ius.centos6.x86_64                    1/15
    Installing : php70u-cli-7.0.8-1.ius.centos6.x86_64                       2/15
    Installing : php70u-pdo-7.0.8-1.ius.centos6.x86_64                       3/15
    Installing : libwebp-0.4.3-3.el6.x86_64                                  4/15
    Installing : libicu-4.2.1-14.el6.x86_64                                  5/15
    Installing : php70u-intl-7.0.8-1.ius.centos6.x86_64                      6/15
    Installing : php70u-gd-7.0.8-1.ius.centos6.x86_64                        7/15
    Installing : php70u-mysqlnd-7.0.8-1.ius.centos6.x86_64                   8/15
    Installing : php70u-devel-7.0.8-1.ius.centos6.x86_64                     9/15
    Installing : php70u-xml-7.0.8-1.ius.centos6.x86_64                      10/15
    Installing : php70u-opcache-7.0.8-1.ius.centos6.x86_64                  11/15
    Installing : php70u-bcmath-7.0.8-1.ius.centos6.x86_64                   12/15
    Installing : php70u-json-7.0.8-1.ius.centos6.x86_64                     13/15
    Installing : php70u-mbstring-7.0.8-1.ius.centos6.x86_64                 14/15
    Installing : php70u-mcrypt-7.0.8-1.ius.centos6.x86_64                   15/15
    Verifying  : php70u-xml-7.0.8-1.ius.centos6.x86_64                       1/15
    Verifying  : php70u-cli-7.0.8-1.ius.centos6.x86_64                       2/15
    Verifying  : php70u-opcache-7.0.8-1.ius.centos6.x86_64                   3/15
    Verifying  : libicu-4.2.1-14.el6.x86_64                                  4/15
    Verifying  : libwebp-0.4.3-3.el6.x86_64                                  5/15
    Verifying  : php70u-bcmath-7.0.8-1.ius.centos6.x86_64                    6/15
    Verifying  : php70u-json-7.0.8-1.ius.centos6.x86_64                      7/15
    Verifying  : php70u-devel-7.0.8-1.ius.centos6.x86_64                     8/15
    Verifying  : php70u-gd-7.0.8-1.ius.centos6.x86_64                        9/15
    Verifying  : php70u-common-7.0.8-1.ius.centos6.x86_64                   10/15
    Verifying  : php70u-mbstring-7.0.8-1.ius.centos6.x86_64                 11/15
    Verifying  : php70u-mysqlnd-7.0.8-1.ius.centos6.x86_64                  12/15
    Verifying  : php70u-mcrypt-7.0.8-1.ius.centos6.x86_64                   13/15
    Verifying  : php70u-pdo-7.0.8-1.ius.centos6.x86_64                      14/15
    Verifying  : php70u-intl-7.0.8-1.ius.centos6.x86_64                  15/15

    Installed:
    php70u-bcmath.x86_64 0:7.0.8-1.ius.centos6
    php70u-common.x86_64 0:7.0.8-1.ius.centos6
    php70u-devel.x86_64 0:7.0.8-1.ius.centos6
    php70u-gd.x86_64 0:7.0.8-1.ius.centos6
    php70u-intl.x86_64 0:7.0.8-1.ius.centos6
    php70u-json.x86_64 0:7.0.8-1.ius.centos6
    php70u-mbstring.x86_64 0:7.0.8-1.ius.centos6
    php70u-mcrypt.x86_64 0:7.0.8-1.ius.centos6
    php70u-mysqlnd.x86_64 0:7.0.8-1.ius.centos6
    php70u-opcache.x86_64 0:7.0.8-1.ius.centos6
    php70u-pdo.x86_64 0:7.0.8-1.ius.centos6
    php70u-xml.x86_64 0:7.0.8-1.ius.centos6

    Dependency Installed:
    libicu.x86_64 0:4.2.1-14.el6                 libwebp.x86_64 0:0.4.3-3.el6
    php70u-cli.x86_64 0:7.0.8-1.ius.centos6

    Skipped (dependency problems):
    mod_php70u.x86_64 0:7.0.8-1.ius.centos6

    Complete!
但当我再次访问该网站时,我得到的唯一信息是:

在错误日志中显示:

[Tue Jul 05 15:09:46 2016] [error] [client 145.132.179.108] File does not exist: /home/trade4deals/public_html/500.shtml
当我输入命令
php-v
时,它仍然说它正在使用PHP5.4.42:

PHP 5.4.42 (cli) (built: Jun 29 2015 18:08:03)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

我能做什么?非常感谢。

这看起来像是一个Apache错误日志条目,我想即使在升级之前也有很多类似的条目。假设您的PHP安装顺利,那么您只需要更新Apache的配置文件,将其指向新的PHP安装,然后重新启动Apache。@MonkeyZeus我该怎么做?这是一个服务器管理问题,最好在处理Web服务器/php设置的一节中提问,而不是在应用程序编程节中提问。@FiascoLabs我该如何进入该节?