Apache Web Server

Installed on HP3 to try it out. Using ddns.net. http://satoshihost.ddns.net/
See more on the Dynamic DNS page.

sudo apt update
sudo apt install apache2
sudo systemctl start apache2
sudo chown username:username /var/www/html

/var/www/html/ is the root for the web stuff.

That was too easy. Now got to do https.

From time to time, for some reason it stops working and when I do, journalctl -xeu apache2.service I can see the error: Cannot access directory '/var/log/apache2/ – Just create the directory again and give it write permissions. Maybe this was stacer!

sudo mkdir -p /var/log/apache2/
sudo chmod -R 744 /var/log/apache2/