我无法通过数字海洋托pipe的服务器上的yum重新安装PHP。
我安装了PHP 5.4,但想要5.6。 我添加/启用了remi repo的,运行yum -y remove PHP* ,然后尝试重新安装PHP。
当我运行yum -y install PHP我得到以下内容:
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
我一直在关注这个教程
xz压缩安装在centos上
类似的Windows 7的YUM程序
yum在centos上安装PHP-pear *
我如何在EC2实例上安装xclip?
我有点卡住了 我已经尝试删除httpd,重新安装httpd,似乎没有什么解决这个问题。 我甚至遇到错误,当我禁用remi,并尝试安装PHP 5.4。
任何想法去哪里从这里?
我正在运行CentOS Linux版本7.1.1503(核心)
在Amazon EC2上安装Varnish Cache 3.0
卸载python 2.6而不使用yum
我修好了它! 问题是我安装了错误的EL版本。 我删除了所有额外的回购,删除所有的PHP软件包,删除httpd。 如下:
yum install epel-release rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum clean yum update
yum install PHP56w PHP56w-opcache PHP56w-mcrypt PHP56w-pdo PHP56w-MysqL
在我的linux机器上安装PHP70w(webstatic)时,我也遇到了同样的问题。 以下命令帮助我安装PHP70
sudo yum clean all // to clear all caches
清除缓存后再次安装PHP70使用:
sudo yum install PHP70
虽然这可能更适合serverfault或poweruser,我仍然会回答。
这是根据经验和每一次工作,如果按照指示完成。
要安装,首先必须将与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
然后你可以像这样安装你的每个包:
yum install PHP56w-<package name>
不要忘记PHP56w前缀。
来源: https : //webtatic.com/packages/PHP56/
试试这个(关于评论):
yum update -y; yum remove httpd && yum install httpd; yum install PHP56w-common PHP56w-opcache PHP56w-MysqL
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。