No matter how many times you have installed LAMP and configured Apache – you still have to look up certain details that you forgotten about since it was a half year since you did that etc. Anyways I got this error / warning on Ubuntu machine when setting up a LAMP for local development:
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
I am guessing this means that Apache can’t find the default server name and is using 127.0.1.1 as default. Not what we want so we edit the apache default config file in /etc/apache2/sites-available/default and put in on the first line:
ServerName localhost
Case solved.