1. Update the system before installing
sudo apt update
2. Installing Apache2
sudo apt install apache2
3. Install PHP
sudo apt install php
sudo apt-get install libapache2-mod-php
4. Install MySQL
sudo apt install mysql-server php7.0-mysql
sudo apt-get install mysql-client
Mysql_secure_installation
5. Installing phpMyAdmin
sudo apt-get install phpMyAdmin
sudo apt-get install php-mbstring
sudo apt-get install Php-gettext
sudo ln-s/usr/share/phpmyadmin/var/www/html/phpmyadmin
Configure phpMyAdmin
Nano/etc/php/7.0/apache2/php.ini
Display_errors = On (error log appears, two times, change, otherwise invalid)
Extension=php_mbstring.dll (Open mbstring)
--------------------------------------------------------------------------------------------
Reference 1:http://justcode.ikeepstudying.com/2016/04/ubuntu-16-04-%e5%ae%89%e8%a3%85- lamp-install-apache-mysql-php-lamp-stack-ubuntu-16-04/
Reference 2:http://www.linuxdiyf.com/linux/20557.html
Ubuntu 16.04 installs Apache, MySQL, PHP7