-
-
Notifications
You must be signed in to change notification settings - Fork 537
Apache tips
This tips were prepared for Install Tracks 2.5 on Ubuntu 20.10
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
To start or stop manually the Apache2 service use
>systemctl start apache2.service
>systemctl stop apache2.service
If you have a name inside /etc/hostname you can also use that name instead of localhost.
when checking the stauts I get
AH00558: apache2: Could not reliably determine the server's fully qualified domain name
If you get this kind of error go to /etc/apache2/apache2.conf and insert the following line to the file
ServerName localhost
after the changes you need to reload apache
>systemctl reload apache2
the previous error should disappear