1 - install apache2: sudo apt update sudo apt install apache2 2 - Managing apache2: - to stop web service sudo systemctl stop apache2 - to start web service: sudo systemctl start apache2 - to restart service: sudo systemctl restars apache2 - reload Apache configuration sudo systemctl reload apache2 - to stop starting automatic apache when pc boots up: sudo systemctl disable apache2 - to re-enable service to start up at boot: sudo systemctl enable apache2 3 - Setting up virtual host - create own folder where page will be contained: sudo mkdir /var/www/ownfolder sudo chown -R $USER:$USER /var/www/ownfolder sudo chmod -R 755 /var/www/ownfolder - create virtual host files: sudo nano /var/www/ownfolder/index.html Write inside index.html: Hello World!! sudo nano /etc/apache2/sites-available/ownfolder.conf Write inside ownfolder.conf: ServerName ownfolder ServerAdmin my_email@my_server_email.com DocumentRoot /var/www/ownfolder ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined sudo nano /etc/apache2/apache2.conf include this line to file end: ServerName 127.0.0.1 - Ready to activate our own virtual server: sudo a2ensite ownfolder.conf sudo a2dissite 000-default.conf sudo apache2ctl configtest sudo systemctl reload apache2