Fix Apache Could not reliably determine…

5 years, 10 months ago 0
Posted in: Programování

If you suffer with following message when restarting Apache, the solution is following:

 * Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Then run

sudo nano /etc/apache2/httpd.conf

or any other preferred text editor and add the line:

ServerName localhost

After that you can run following command without warning.

sudo /etc/init.d/apache2 restart

Napsat komentář

Vaše emailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *