1.Step one (update apt):
sudo apt-get update
2.Step two (install apache2):
sudo apt install apache2
3.Step three(install php7):
sudo apt install php7.0
check php version
php -v
4.Step four(install apache2-mod-php):
sudo apt install libapache2-mod-php7.0
5.Step five(install mysql):
sudo apt-get install mysql-server
6.Step six(install php-mysql):
sudo apt-get install php7.0-mysql
7.Step seven(Restart mysql and apache):
sudo service mysql restart
sudo service apache2 restart
网友评论