Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName di Debian

Error ini terjadi setelah saya konfigurasi htaccess web server Debian, saya mencoba restart apache2 namun muncul warning “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName”. Hasil tangkapan layar seperti berikut ini:

Screenshot from 2013-12-14 05:28:34

Kemudian saya googling bentar sana sini akhirnya ketemu jawaban di sini http://aslamnajeebdeen.com/blog/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127011-for-servername-error-on-ubuntu . Ternyata hanya cuma edit file httpd.conf untuk menambahkan nama servernya karena secara default httpd.conf isinya kosong. Di Kali Linux, tidak ditemukan httpd.conf, yang ada cuma apache2.conf. Caranya seperti ini:

Debian: vim /etc/apache2/httpd.conf
Kali Linux : vim /etc/apache2/apache2.conf

Tambahkan baris berikut:
ServerName localhost

Simpan kemudian restart apache.
/etc/init.d/apache2 restart

This entry was posted in LINUX, SECURITY, Server. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s