16.04 the method of installation is almost the same as the previous versions.
First install Apache:
sudo apt-get install apache2
After the installation is complete, restart the service:
/etc/init.d/apache2 restart
Enter your password, the screen displays the following words indicating that the restart is complete:
[....] Restarting Apache2 (via Systemctl): Apache2.service
= = = Authenticating for org.freedesktop.systemd1.manage-units = = =
Authentication is required to restart ' Apache2.service '.
Authenticating As:wagner,,, (Wagner)
Password:
= = = Authentication Complete = =
. Ok
Then, using the browser input 127.0.0.1 try to enter the Apache welcome interface, if entered, it means that Apache installation success.
Then install PHP:
sudo apt-get install php7.0
sudo apt-get install libapache2-mod-php7.0
Under/var/www/html/Path, create a new phpinfo.php with the following content:
<?php
Phpinfo ();
?>
Enter 127.0.0.1/phpinfo.php in the browser
If you successfully see the list information for PHP, the installation is successful
Finally, install MySQL:
sudo apt-get install Mysql-server
sudo apt-get install Php7.0-mysql
Terminal input Mysql-u root-p, then enter the password set at installation, enter the mysql> command prompt, indicating that the installation was successful.
Ubuntu 16.04 apache+php+mysql Environment Building