1. Update the system before installing
1
2. Installing Apache2
1 sudo apt install apache2
3. Install PHP
1 sudo apt install php 2 sudo apt-get install libapache2-mod-php
4. Install MySQL
1 sudo apt install mysql-server php7.0-mysql2sudo apt-get install mysql-client 3 mysql_secure_installation
5. Installing phpMyAdmin
1 sudo apt-get install phpMyAdmin 2 sudo apt-get install php-mbstring 3 sudo apt-get install php-gettext 4 sudo ln-s/usr/share/phpmyadmin/var/www/html/phpmyadmin
Configure phpMyAdmin
1 Nano/etc/php/7.0/apache2/php.ini
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