the directory /var/www is where Apache2 expects to have the websites (in Ubuntu, Debian flavors)
For debugging the Apache error log files are typically located in /var/log/apache2/
To enable or disable the automatic start of Apache2 service when you boot your machine use
>systemctl enable apache2.service >systemctl disable apache2.service
>systemctl enable apache2.service
>systemctl disable apache2.service
To start or stop manually the Apache2 service use
>systemctl start apache2.service >systemctl stop apache2.service
>systemctl start apache2.service
>systemctl stop apache2.service
There was an error while loading. Please reload this page.