Home / Công nghệ Web / Lập trình Web / Apache could not reliably determine the servers fully qualified domain name using 127.0.1.1 for server name error

Apache could not reliably determine the servers fully qualified domain name using 127.0.1.1 for server name error

Print Friendly, PDF & Email

Khi khởi động apache bạn hay gặp lỗi sau đây.

nvntung@xps827:~$ 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

Apache is one of commonly used web servers in Linux. At the time modifying apache, you need to restart it for updating the modifications without restarting Linux. Sometimes, we may face with the following troubleshooting:

Apache2 with the error the fully qualified domain name

“The fully qualified domain name” error

To fix that problem, you need to edit the httpd.conf file. Open the terminal and type,

sudo gedit /etc/apache2/httpd.conf

By default httpd.conf file will be blank. Now, simply add the following line to the file.

ServerName localhost

Save the file and exit from gedit. Finally restart the server.

sudo service apache2 restart

Or use the instructions:

sudo /etc/init.d/apache2 restart

See more here.

About Nguyen Vu Ngoc Tung

I love making new professional acquaintances. Don't hesitate to contact me via nguyenvungoctung@gmail.com if you want to talk about information technology, education, and research on complex networks analysis (i.e., metabolic networks analysis), data analysis, and applications of graph theory. Specialties: researching and proposing innovative business approaches to organizations, evaluating and consulting about usability engineering, training and employee development, web technologies, software architecture.