Ubuntu
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.
- TAGS
- Ubuntu
- 4.5/5.0
- Last updated 08 September, 2022
- By Admin
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
Then it will works
I hope it can help you....