centos中卸载php,在Centos 7上完成PHP的卸载和重新安装
基本上,我編輯了remi repo配置文件以啟用PHP 5.6和5.5,并安裝了php5.6。我測試了我想要測試的內容,并試圖通過禁用repos并卸載所有php然后重新安裝來切換回原來的狀態。現在我有問題了。
以下是癥狀和我所做的嘗試。
我收到一條關于WordPress安裝的消息”
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
"
# php -v
PHP **7.2.14** (cli) (built: Jan 8 2019 14:05:15) ( NTS )
Copyright (c) 1997-2018 The PHP Group
phpinfo() ?> works but says php version **7.1.24**
# yum list installed | grep php
php.x86_64 7.2.14-1.el7.remi @remi-php72
php-cli.x86_64 7.2.14-1.el7.remi @remi-php72
php-common.x86_64 7.2.14-1.el7.remi @remi-php72
php-gd.x86_64 7.2.14-1.el7.remi @remi-php72
php-json.x86_64 7.2.14-1.el7.remi @remi-php72
php-mysqlnd.x86_64 7.2.14-1.el7.remi @remi-php72
php-pdo.x86_64 7.2.14-1.el7.remi @remi-php72
php-pecl-mcrypt.x86_64 1.0.1-6.el7.remi.7.2 @remi-php72
# yum install php-mysql
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.layeronline.com
* epel: mirror.uic.edu
* extras: centos.mirror.globo.tech
* nux-dextop: mirror.li.nux.ro
* remi: repo1.ash.innoscale.net
* remi-php72: repo1.ash.innoscale.net
* remi-safe: repo1.ash.innoscale.net
* updates: centos.mirror.ca.planethoster.net
* webtatic: us-east.repo.webtatic.com
Package php-mysql-5.4.45-16.el7.remi.x86_64 is obsoleted by php-mysqlnd-7.2.14-1.el7.remi.x86_64 which is already installed
有沒有什么簡單的解決方法,或者我應該重新安裝整個開發機器。
總結
以上是生活随笔為你收集整理的centos中卸载php,在Centos 7上完成PHP的卸载和重新安装的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php 二维数组中去重,PHP实现二维数
- 下一篇: 土豆的藤能吃吗