Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” Error on Ubuntu

Let me note this…

nano /etc/apache2/httpd.conf
ServerName localhost


and save it


if it does not work 
edit also apache2.conf file and paste same text at the end of it.


and save it again