June 5, 2015

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

You might probably faced the same following error while you were restarting the Apache server on Ubuntu.
aslam@aslam:~$ 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
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 /etc/init.d/apa

Related Posts:

  • Cách xác định vị trí file php.ini chính xác để chỉnh sửaFile php.ini là file cấu hình cho việc dịch mã và xử lý code PHP. Vì nhiều lý do khác nhau mà chúng ta cần phải sửa thông số trong file này để phù hợp với mã nguồn hay nhu cầu lập trình, sử dụng.Tuy nhiên, do việc cài đặt các… Read More
  • Cài đặt Apache và PHP trên CentOS 1. Cài đặt Apache Dùng lệnh để tải gói và cài đặt. ? 1 yum install httpd Cấu hình Apache khởi động cùng với Server. Sau đó khởi động Apache: ? 1 service httpd start Test thử quá trình cài đặt đã… Read More
  • Hướng dẫn Disable 1 số hàm PHP trên Server bằng PHP.INIHiện nay vấn đề Hack local khá là phổ biến. Để đảm bảo an toàn cho khách hàng thì các nhà cung cấp dịch vụ thường Disable 1 số hàm PHP nguy hiểm mà khách hàng ít dùng đến để tăng cường bảo mật cho các acc cùng server.Vậy làm … Read More
  • 25 Apache Interview Questions for Beginners and Intermediates We are very thankful to All our readers for the response we are getting for our new Linux Interviewsection. And now we have started section wise learning for Interview questions and continuing with the same today’s arti… Read More
  • Bật UserDir và tạo virtualhost trên Apache Như các bạn đã biết mặc định Apache sẽ để đường dẫn thư mục chứa code là /var/ww/html. Trong tut này mình sẽ hướng dẫn các bạn bật UserDir trên Apache và chuyển đường dẫn về /home/domain/public_html. Bắt đầu thôi.… Read More

0 comments:

Post a Comment