$ sudo apt install apache2
Change the folder permissions:
$ sudo chmod -R 775 /var/www/html/
$ sudo chown -R www-data:www-data /var/www/html/
Create a symbolic link of the log folder:
$ sudo ln -s /var/log/apache2/ /etc/apache2/logs
Configure your server name.
Add '
ServerName YOUR_SERVER_NAME' in '
/etc/apache2/apache2.conf' file:
$ sudo nano /etc/apache2/apache2.conf
ServerName mtitekserver
Restart Apache HTTP Server:
$ sudo service apache2 restart
Verify the version of Apache HTTP Server:
$ apache2ctl -V
Server version: Apache/2.4.29 (Ubuntu)
...
Access the default page of Apache HTTP Server:
http://localhost