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...
Hardik Savani
I'm a full-stack developer, entrepreneur and owner of ItSolutionstuff.com. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Laravel, Angular, Vue, Node, Javascript, JQuery, Codeigniter and Bootstrap from the early stage. I believe in Hardworking and Consistency.
We are Recommending you
- How to Whitelist/Allow IP Address in Apache Ubuntu?
- How to Restrict/Block IP Address in Apache Ubuntu?
- How to Install Laravel in Ubuntu Server?
- How to Set Up Password Authentication with Apache in Ubuntu?
- How to Install Apache PHP MySQL and Phpmyadmin on Ubuntu?
- How to Install Apache Web Server on Ubuntu Server?
- Apache Reverse Proxy with Authentication Example
- How to Enable Apache mod_rewrite Module in Ubuntu?
- How to create quick apache virtual host in Ubuntu?
- How to create virtual host in ubuntu apache?