Ubuntu 安装 PHP7.2、Apache2和MySQL

OneOne 2018-11-16 PM 3069℃ 0条

安装Apache

sudo apt install apache2

1057884-f8219caa4535a88d.png

安装php7.2

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 -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

sudo apt install libapache2-mod-php7.2

php -v

1057884-52be0f8212863616.png
1057884-0e35c52023597674.png

安装MySQL

sudo apt-get install mysql-server mysql-client

1057884-b20199e0e8eabf53.png

参考链接

https://blog.csdn.net/qq_16885135/article/details/79747045

https://www.cnblogs.com/impy/p/8040684.html

https://blog.csdn.net/github_38336924/article/details/82459078

标签: Linux, php, ubuntu, Apache, mysql

非特殊说明,本博所有文章均为博主原创。

评论啦~