安装:

如果之前有其他版本PHP,在这边禁用掉

1

sudo a2dismod php5

再来安装做准备

1

2

3

4

sudo apt-get install software-properties-common python-software-properties

sudo add-apt-repository ppa:ondrej/php && sudo apt-get update

sudo apt-get -y install php7.2

sudo a2enmod php7.2

安装常用扩展

1

sudo -y apt-get install php7.2-fpm php7.2-mysql php7.2-curl php7.2-json php7.2-mbstring php7.2-xml  php7.2-intl

安装其他扩展(按需安装)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

sudo apt-get install php7.2-gd

sudo apt-get install php7.2-soap

sudo apt-get install php7.2-gmp

sudo apt-get install php7.2-odbc

sudo apt-get install php7.2-pspell

sudo apt-get install php7.2-bcmath

sudo apt-get install php7.2-enchant

sudo apt-get install php7.2-imap

sudo apt-get install php7.2-ldap

sudo apt-get install php7.2-opcache

sudo apt-get install php7.2-readline

sudo apt-get install php7.2-sqlite3

sudo apt-get install php7.2-xmlrpc

sudo apt-get install php7.2-bz2

sudo apt-get install php7.2-interbase

sudo apt-get install php7.2-pgsql

sudo apt-get install php7.2-recode

sudo apt-get install php7.2-sybase

sudo apt-get install php7.2-xsl

sudo apt-get install php7.2-cgi

sudo apt-get install php7.2-dba

sudo apt-get install php7.2-phpdbg

sudo apt-get install php7.2-snmp

sudo apt-get install php7.2-tidy

sudo apt-get install php7.2-zip

卸载:

一、删除php的相关包及配置

sudo apt-get autoremove php7*

二、删除关联

sudo find /etc -name "*php*" |xargs  rm -rf

三、清除dept列表

sudo apt purge `dpkg -l | grep php| awk '{print $2}' |tr "\n" " "`

四、检查是否卸载干净(无返回就是卸载完成)

dpkg -l | grep php7.0

引用:https://www.cnblogs.com/chancy/p/9443930.html

ubuntu 卸载php7.2,ubuntu18.04 安装与卸载 php7.2相关推荐

  1. ubuntu(四)Ubuntu18.04安装微信

    话说我的ubuntu系统上边,已经有了搜狗输入法,360浏览器,vscode,网易云,VMware,qq,wps还差个微信基本上就可以能彻底摆脱windows了. 以上的软件我都是安装官方提供的版本, ...

  2. Ubuntu18.04安装与卸载搜狗输入法

    1 下载搜狗输入法 搜狗输入法官网,Linux版 网址:https://pinyin.sogou.com/linux/?r=pinyin 下载双拼版本,下下来是这个包 sogoupinyin_2.3. ...

  3. ubuntu系统(八):ubuntu18.04双系统安装+ros安装+各种软件安装+深度学习环境配置全家桶

    0 说明 1.安装ubuntu18.04系统 1.1 ubuntu18.04镜像地址(可以用迅雷等下载): 1.2 下载Rufus: 1.3 制作镜像: 1.4 磁盘分区 1.5 关闭win11快速启 ...

  4. Ubuntu18.04安装RTL8125/RTL8168等网卡驱动程序

    Ubuntu下的驱动程序在这里下载, Realtek PCIe FE / GBE / 2.5G / Gaming Ethernet Family Controller Software - REALT ...

  5. ubuntu18.04安装显卡驱动,Anaconda,CUDA,pytorch全套流程

    记录一次成功的装显卡,以为过程很复杂,其实这边封装的还挺好,正常走流程就没啥问题.我这边也是看各个步骤的博客总结,可以称之为搬运工. 1. 显卡驱动安装 参考的是这篇博客:Ubuntu18.04安装显 ...

  6. Ubuntu18.04安装Fcitx中文输入法

    Ubuntu18.04安装Fcitx中文输入法 安装ibus之后也无法用中文输入法,Linux中.英文切换方式是win+space(空格) 1.在安装Fcitx之前卸载IBUS,在终端输入以下语句: ...

  7. Ubuntu18.04安装教程——超详细的图文教程

    电脑配置: 名称:Lenovo 拯救者Y7000P 处理器:i7 - 10750H 内存:32G 固态:1TB 显卡:RTX2060 - 6G 一.准备工作 本文以 Ubuntu18.04.4 安装为 ...

  8. Ubuntu18.04安装后要做的事

    Ubuntu18.04安装后要做的事 一.安装好第一件事:换源!! 按Windows键在搜索框中找到Software & Updates, 将源更新为阿里云的源. 在Other Softwar ...

  9. Ubuntu18.04安装搜狗输入法-问题全讲解

    Ubuntu18.04安装搜狗输入法 文章目录 Ubuntu18.04安装搜狗输入法 序言 细数Ibus的坑 坑一 坑二 坑三 坑四 转投fcitx的坑 从完全卸载fcitx输入框架开始 以最简配置安 ...

最新文章

  1. WiredTiger引擎编译 及 LT_PREREQ(2.2.6)问题解决
  2. Go在招聘中最吃香、安全工程师薪资涨幅最高 | Hired年度软件工程师报告出炉
  3. rtp发送 h265
  4. spring三: 装配bean( 在xml中进行显式配置, 在java中进行显式配置)
  5. python3练习-装饰器
  6. 有道云笔记到简书的迁移工具
  7. SpringMVC框架搭建( 使用Jar包搭建)
  8. 不如跳舞!伯克利的舞蹈动作迁移效果逆天
  9. 对lua 实现面向对象的理解
  10. Ubuntu LogViewer调试工具
  11. MATLAB 绘制空间分布图,颜色代表数值(替代ArcGIS)
  12. 儿童手表电话卡遇到问题需要怎么解决
  13. Png怎么转jpg?这种方法教你如何快速转换
  14. 人大、北外、北航三校开启在职硕士(学位)商业数据分析方向 | 报名
  15. sdnu oj 1357.Text Reverse 字符串
  16. ftl模板导出excel_freemarker导出Excel
  17. 感悟爱情的空间说说:总有一个人,一直住在心底,却消失在生活里。
  18. 华为AR路由器端口配置trunk_锐捷交换机和路由器的一些基础命令
  19. 7-11 群发邮件 (10 分)
  20. 杂交水稻 CET4/6

热门文章

  1. 记爬取CET4级网站的那一夜
  2. log4j配置详解以及模板
  3. 电脑全屏时任务栏没有隐藏,解决办法
  4. 创立十周年,销售易发力新战场
  5. 你有被世界杯期间“脑残式广告”洗脑吗?
  6. 阿里巴巴架构再迎大调整:左手接招腾讯,右手瞄准百度
  7. Linux CentOS 7.3 1611 基础命令
  8. 数据结构(零)掌握内容要求
  9. 《使用Java理解程序逻辑》学习笔记
  10. 29-分数求模(逆元)B Jxc军训