ubuntu 16.04 LAMP 环境 以及虚拟主机

ubuntu 可以省去类似 centos的编译环节 

1.Apache  sudo apt-get install apache2

2.Mysql   sudo apt-get install msyql

3.php    sudo apt-get install php7

虚拟主机

1.php.ini 开启 vhosts 

2.在/etc/apache2/site-availabel 新建 xx.conf 复制 default.conf

3.在 /etc/apache2/site-enable 建立软连接  sudo ln -s

4.重启apache

原文地址:https://www.cnblogs.com/leilei-1/p/7133437.html