How to fix Apache – "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName" Error on Ubuntu
While restarting the Apache server on Ubuntu, I have this problem.
To fix that problem, I need to edit the httpd.conf file. Open the terminal and type,
By default httpd.conf file will be blank. Now, simply I add the following line to the file.
Then I save the file (Ctrl+O) and exit (Ctrl+X) from nano. Finally restart the server.
pratama@pratama:~$ 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
* 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
ServerName PratamaServer
sudo /etc/init.d/apache2 restart