Fixing Apache 2 “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” Error on Raspberry Pi Wheezy

You might probably find this error while starting/restarting Apache web server on Raspberry Pi Wheezy:

root@raspi:# /etc/init.d/apache2 restart
[....] Restarting web server: apache2apache2: 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
. ok

This error caused by Apache’s ServerName confguration is missing in apache2.conf file. So, as a quick fix to this error is creating or editing a httpd.conf file in directory /etc/apache2/conf.d using nano:

root@raspi:# cd /etc/apache2/conf.d
root@raspi:/etc/apache2/conf.d# nano httpd.conf

Put the following line on httpd.conf file:

ServerName localhost

Save the file using Ctrl+O command, and exit nano using Ctrl+X.

Restart Apache 2 using the following command

root@raspi:/etc/apache2/conf.d# /etc/init.d/apache2 restart
root@raspi:/etc/apache2/conf.d# /etc/init.d/apache2 restart
[ ok ] Restarting web server: apache2 ... waiting .
root@raspi:/etc/apache2/conf.d#

That’s it! The FQDN error has gone, and you are good to go to your awesome Raspberry Pi project. Hope this helps!

Note:
Raspberry Pi Raspbian “Wheezy” is Debian-based Linux OS, so this tutorial might be applicable to other Debian-based OS, such as Ubuntu.

31 Replies to “Fixing Apache 2 “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” Error on Raspberry Pi Wheezy”

  1. Actualy, I’d suggest not to edit apache2.conf or httpd.conf directly but put the directive inside /etc/apache2/conf.d/servername

    That’s better for updates.

  2. Layarkaca21.io adalah situs web hiburan yang bertujuan untuk membantu orang download film dengan kualitas tinggi. Anda dapat nonton film seperti Action, LK21, Dunia21, Anime, Horror, Komedi, Mandarin, Drama, Adventure, Animation, Cinema 21, Fantasy, Science Fiction …

  3. downloadlagu-gratis.com tempat Anda dapat mengunduh dan mendengarkan musik online berkecepatan tinggi, musik terpanas 2019 dan mendengarkan dan mengunduh tanpa batas.

    Unduh lagu mp3 gratis terbaru, dengarkan lagu panas online 2019, dengarkan musik online, dan unduh lagu gratis di downloadlagu-gratis.com unduh musik mp3 tertinggi tercepat, unduh kecepatan musik mp3 Tinggi, unduh lagu terbaru 2019.

  4. xDownloadLagu.Com adalah situs web yang membantu Anda download lagu mp3 gratis ke telepon Anda, gudang lagu gratis, musik berkualitas tinggi dengan banyak genre. Kami telah mencoba membangun Xdownloadlagu.com dengan tujuan membantu orang unduh lagu dengan mudah mengalami mendengarkan dan menikmati musik dengan cara terbaik. Xdownloadlagu selalu memperbarui lagu dan tangga lagu terbaru di Indonesia, planet lagu dan di seluruh dunia.

  5. “A lot of magazines are failing because they are in a crowded market. But there is not one magazine exclusively for music festivals,” Moore said. “Being a print-only magazine adds value to our content, and brings more value to our advertisers.”

  6. 6 Miles Coast Resort Lăng Cô là tâm điểm đầu tư mới của BDS nghỉ dưỡng trong năm 2019, mang đến luồng gió mới trong việc khai thác du lịch nghỉ dưỡng từ một nhà đầu tư uy tín nước ngoài.

  7. 6milescoasts.com 6 Miles Coast Resort Lang Co is the focal point of BDS’s new investment in 2019, bringing a new wind in exploiting resort tourism from a reputable foreign investor.

  8. Tainhacvn.com Trang tải nhạc online miễn phí – Tai Nhac VN với kho nhạc chất lượng cao khổng lồ được cập nhập 24/7 được tối ưu hỗ trợ người dùng tải nhạc về máy phù hợp với mọi cấu hình

Leave a Reply

Your email address will not be published. Required fields are marked *

*

CAPTCHA Image

*