Fix Apache Could not reliably determine…

7 months, 2 weeks 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

sudo nano /etc/apache2/httpd.conf

and add the line

ServerName localhost

After that you can do following without warning.

sudo /etc/init.d/apache2 restart

Napsat komentář

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

*

Můžete používat následující HTML značky a atributy: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>