蘇阿細 - linux、php
type: channel
link: https://www.wangchouchou.com/tag/linux-php/
items: Ubuntu 18.04安装php 7.2

Ubuntu 18.04安装php 7.2
type: item
date: 2020-10-26T09:29:00+00:00
description: 1、更新apt源apt-get update2、添加php源apt-get install software-properties-common python-software-properties add-apt-repository ppa:ondrej/php apt update3、执行执行 apt list | grep php7 查看php安装包apt list | grep php74、安装apt-get install php7.2安装完成后，输入php --version查看是否安装成功注：上述安装php的命令会同时安装Apache2服务执行以下命令卸载即可sudo service apache2 stop sudo apt-get remove apache2* sudo apt-get autoremove