Saturday, November 26, 2016

Fix Apache Error: Could not reliably determine the server’s fully qualified domain name

$ sudo systemctl status apache2
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: inactive (dead)
     Docs: man:systemd-sysv-generator(8)

Nov 26 00:48:49 kripx systemd[1]: Stopped LSB: Apache2 web server.
Nov 26 00:49:04 kripx systemd[1]: Starting LSB: Apache2 web server...
Nov 26 00:49:04 kripx apache2[8738]:  * Starting Apache httpd web server apache2
Nov 26 00:49:04 kripx apache2[8738]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the ' ServerName' directive globally to suppres

Just open apache2.conf via your terminal
$ sudo nano /etc/apache2/apache2.conf

Put ServerName localhost at end of the file, then restart you Apache service.

No comments:

Post a Comment