Ubuntu Apache Error: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1
Today, I will let you know example of apache2: could not reliably determine the server's fully qualified domain name. Iām going to show you about using 127.0.1.1. set the 'servername' ubuntu 21. We will look at example of apache2: could not reliably determine the server's fully qualified domain name. I explained simply step by step using 127.0.1.1. set the 'servername' dir.
A Few days ago i installed apache2 in my ubuntu 21. I simply restart apache using apache command then i found following error:
"apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName'"
If you want to resolve that issue then follow below commands:
First, you have to open "apache2.conf" and add "ServerName localhost" line in bottom. so let's open file by bellow command:
sudo nano /etc/apache2/apache2.conf
Add below line on that file:
ServerName localhost
Now, just reload apache2.
sudo systemctl reload apache2
Now, It will works.
I hope it can help you...