1, Install Apache2:
sudo apt-get install apache2
2, After installation, Add the following line “ServerName localhost” to the /etc/apache2/apache2.conf file
sudo /etc/apache2/apache2.conf
=>> Add: ServerName localhost
3, Restart Apache:
sudo /etc/init.d/apache2 restart
4, Install MySQL:
sudo apt-get install mysql-server
** Thay doi thu muc mac dinh chua Apache (var/www/html) =>
(1) sudo /etc/apache2/sites-enabled
Open: 000-default.conf => Change var/www/html => your path
(2) sudo gedit /etc/apache2/apache2.conf => Change denied to granted
(3) sudo /etc/init.d/apache2 restart
** Thay doi thu muc root:
(1) sudo gedit /etc/apache2/apache2.conf
Change: /var/www/ => ‘your path’