Ubuntu16.04 搭建LAMP环境
apt-get update
apt-get install apache2
apt-get install mysql-server mysql-client
apt-get install php
apt-get install libapache2-mod-php
apt-get install php-mysql
service mysql restart
service apache2 restart
sudo apt-get install phpmyadmin
sudo ln -s /usr/share/phpmyadmin /var/www/html
sudo a2enmod rewrite
sudo service php7.0-fpm restart
sudo service apache2 restart