

After the initial install of Apache in Ubuntu, you’ll first see this message below:
stmiller@brahms:~$ sudo /etc/init.d/apache2 restart * 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
If you are not planning on using virtualhosts or other configurations, you can simply create a file specifying the ServerName as below.
1. Create this apache config file:
sudo nano /etc/apache2/conf.d/fqdn
2. Add this to the file:
ServerName localhost
Or make it your desired host or domain name such as:
ServerName example.com
3. Save (in nano: Control + X, then Yes to confirm) and restart Apache:
sudo /etc/init.d/apache2 restart
Done!
Related posts:





THANKS A LOT!!!!!!!!!!!!