sudo apt-get install apache2
apache2 -v
sudo apt-get install php7.0
php7.0 -v
sudo apt-get install libapache2-mod-php7.0
cat /etc/apache2/mods-enabled/php7.0.load
sudo apt-get install mysql-server
sudo apt-get install php7.0-mysql
sudo service mysql restart
sudo service apache2 restart
sudo vim /var/www/html/phpinfo.php
<?php
echo phpinfo();
?>
http://192.168.88.254/phpinfo.php
本文出自 “XnNetBlog” 博客,请务必保留此出处http://xnnet.blog.51cto.com/12795469/1933608
原文地址:http://xnnet.blog.51cto.com/12795469/1933608