<legend id='iCsQj'><style id='iCsQj'><dir id='iCsQj'><q id='iCsQj'></q></dir></style></legend>
      <bdo id='iCsQj'></bdo><ul id='iCsQj'></ul>

    <small id='iCsQj'></small><noframes id='iCsQj'>

      <tfoot id='iCsQj'></tfoot>

    1. <i id='iCsQj'><tr id='iCsQj'><dt id='iCsQj'><q id='iCsQj'><span id='iCsQj'><b id='iCsQj'><form id='iCsQj'><ins id='iCsQj'></ins><ul id='iCsQj'></ul><sub id='iCsQj'></sub></form><legend id='iCsQj'></legend><bdo id='iCsQj'><pre id='iCsQj'><center id='iCsQj'></center></pre></bdo></b><th id='iCsQj'></th></span></q></dt></tr></i><div id='iCsQj'><tfoot id='iCsQj'></tfoot><dl id='iCsQj'><fieldset id='iCsQj'></fieldset></dl></div>

      无法在 CentOS 上安装 PHP 包

      Can#39;t install PHP Package on CentOS(无法在 CentOS 上安装 PHP 包)
          • <bdo id='kj7fw'></bdo><ul id='kj7fw'></ul>
            <tfoot id='kj7fw'></tfoot>
          • <i id='kj7fw'><tr id='kj7fw'><dt id='kj7fw'><q id='kj7fw'><span id='kj7fw'><b id='kj7fw'><form id='kj7fw'><ins id='kj7fw'></ins><ul id='kj7fw'></ul><sub id='kj7fw'></sub></form><legend id='kj7fw'></legend><bdo id='kj7fw'><pre id='kj7fw'><center id='kj7fw'></center></pre></bdo></b><th id='kj7fw'></th></span></q></dt></tr></i><div id='kj7fw'><tfoot id='kj7fw'></tfoot><dl id='kj7fw'><fieldset id='kj7fw'></fieldset></dl></div>
            <legend id='kj7fw'><style id='kj7fw'><dir id='kj7fw'><q id='kj7fw'></q></dir></style></legend>

                <tbody id='kj7fw'></tbody>

              <small id='kj7fw'></small><noframes id='kj7fw'>

              • 本文介绍了无法在 CentOS 上安装 PHP 包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我在数字海洋托管的服务器上通过 yum 重新安装 PHP 时遇到问题.

                I am having trouble re-installing PHP via yum on my server hosted by digital ocean.

                我安装了 PHP 5.4 但想要 5.6.我添加/启用了 remi repo,运行 yum -y remove php* 然后尝试重新安装 php.

                I had PHP 5.4 installed but wanted 5.6. I added/enabled the remi repo's, ran yum -y remove php* and then tried to re-install php.

                当我运行 yum -y install php 时,我得到以下信息:

                When I run yum -y install php I get the following:

                Loaded plugins: fastestmirror
                Loading mirror speeds from cached hostfile
                 * base: mirrors.centos.webair.com
                 * epel: mirrors.coreix.net
                 * extras: mirrors.centos.webair.com
                 * remi: remi.check-update.co.uk
                 * remi-php56: remi.check-update.co.uk
                 * updates: mirrors.centos.webair.com
                 * webtatic: uk.repo.webtatic.com
                Resolving Dependencies
                --> Running transaction check
                ---> Package php.x86_64 0:5.6.8-1.el6.remi will be installed
                --> Processing Dependency: php-common(x86-64) = 5.6.8-1.el6.remi for package: php-5.6.8-1.el6.remi.x86_64
                --> Processing Dependency: php-cli(x86-64) = 5.6.8-1.el6.remi for package: php-5.6.8-1.el6.remi.x86_64
                --> Processing Dependency: httpd-mmn = 20051115 for package: php-5.6.8-1.el6.remi.x86_64
                --> Running transaction check
                ---> Package php.x86_64 0:5.6.8-1.el6.remi will be installed
                --> Processing Dependency: httpd-mmn = 20051115 for package: php-5.6.8-1.el6.remi.x86_64
                ---> Package php-cli.x86_64 0:5.6.8-1.el6.remi will be installed
                ---> Package php-common.x86_64 0:5.6.8-1.el6.remi will be installed
                --> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.8-1.el6.remi.x86_64
                --> Processing Dependency: php-pecl-jsonc(x86-64) for package: php-common-5.6.8-1.el6.remi.x86_64
                --> Running transaction check
                ---> Package php.x86_64 0:5.6.8-1.el6.remi will be installed
                --> Processing Dependency: httpd-mmn = 20051115 for package: php-5.6.8-1.el6.remi.x86_64
                ---> Package php-pecl-jsonc.x86_64 0:1.3.7-1.el6.remi.5.6 will be installed
                ---> Package php-pecl-zip.x86_64 0:1.12.5-1.el6.remi.5.6 will be installed
                --> Finished Dependency Resolution
                Error: Package: php-5.6.8-1.el6.remi.x86_64 (remi-php56)
                           Requires: httpd-mmn = 20051115
                           Installed: httpd-2.4.6-31.el7.centos.x86_64 (@base)
                               httpd-mmn = 20120211
                               httpd-mmn = 20120211x8664
                               httpd-mmn = 20120211-x86-64
                 You could try using --skip-broken to work around the problem
                 You could try running: rpm -Va --nofiles --nodigest
                

                我一直在关注 本教程

                我有点卡住了.我试过删除httpd,重新安装httpd,似乎没有什么可以解决这个问题.当我禁用 remi 并尝试安装 PHP 5.4 时,我什至得到了错误.

                I'm a bit stuck. I have tried removing httpd, re-installing httpd, nothing seems to fix this. I even get the error when I disable remi and try and install PHP 5.4.

                关于从这里去哪里有什么想法吗?

                Any ideas on where to go from here?

                我正在运行 CentOS Linux 版本 7.1.1503(核心)

                I am running CentOS Linux release 7.1.1503 (Core)

                推荐答案

                我修好了!问题是我安装了错误版本的 EL.我删除了所有额外的 repo,删除了所有 php 包,删除了 httpd.运行以下:

                I fixed it! The issue was that I had the wrong version of EL installed. I removed all my extra repo's, removed all php packages, removed httpd. Ran the following:

                yum install epel-release
                rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
                yum clean
                yum update
                

                然后我可以使用以下命令安装 PHP

                I was then able to install PHP using the following

                yum install php56w php56w-opcache php56w-mcrypt php56w-pdo php56w-mysql
                

                这篇关于无法在 CentOS 上安装 PHP 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Converting string to MySQL timestamp format in php(在php中将字符串转换为MySQL时间戳格式)
                datetime to timestamp(日期时间到时间戳)
                PHP timestamp date to user timezone(PHP时间戳日期到用户时区)
                Converting TIMESTAMP to unix time in PHP?(在 PHP 中将 TIMESTAMP 转换为 unix 时间?)
                Convert ISO 8601 to unixtimestamp(将 ISO 8601 转换为 unixtimestamp)
                Finding days between 2 unix timestamps in php(在php中查找2个unix时间戳之间的天数)

                • <i id='nzPvJ'><tr id='nzPvJ'><dt id='nzPvJ'><q id='nzPvJ'><span id='nzPvJ'><b id='nzPvJ'><form id='nzPvJ'><ins id='nzPvJ'></ins><ul id='nzPvJ'></ul><sub id='nzPvJ'></sub></form><legend id='nzPvJ'></legend><bdo id='nzPvJ'><pre id='nzPvJ'><center id='nzPvJ'></center></pre></bdo></b><th id='nzPvJ'></th></span></q></dt></tr></i><div id='nzPvJ'><tfoot id='nzPvJ'></tfoot><dl id='nzPvJ'><fieldset id='nzPvJ'></fieldset></dl></div>
                  <legend id='nzPvJ'><style id='nzPvJ'><dir id='nzPvJ'><q id='nzPvJ'></q></dir></style></legend>
                • <tfoot id='nzPvJ'></tfoot>

                        <bdo id='nzPvJ'></bdo><ul id='nzPvJ'></ul>
                          <tbody id='nzPvJ'></tbody>

                          <small id='nzPvJ'></small><noframes id='nzPvJ'>