WARNING: failed to start apache22, Could not reliably determine the server’s fully qualified domain name

Saat anda mengjalankan Apache22 running FreeBSD dan kemudian menghadapi masalah seperti dibawah ini:

# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for fisip2.unila.ac.id
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
apache22 not running? (check /var/run/httpd.pid).
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for fisip2.unila.ac.id
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
Starting apache22.
httpd: apr_sockaddr_info_get() failed for fisip2.unila.ac.id
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
/usr/local/etc/rc.d/apache22: WARNING: failed to start apache22

itu berarti pada settingan /etc/hosts anda harus dirubah ke settingan yang sesuai dengan nama domain dan IP server anda.

192.168.1.176           fisip2.unila.ac.id

(IP diatas hanyalah contoh, sesuaikan IP dengan IP server anda)

Lalu, apabila masih ada error seperti ini:

Performing sanity check on apache22 configuration:
httpd: Could not reliably determine the server’s fully qualified domain name, using fisip2.unila.ac.id for ServerName
Syntax OK
Starting apache22.
httpd: Could not reliably determine the server’s fully qualified domain name, using fisip2.unila.ac.id for ServerName

maka tambahkan pada /etc/hosts:

::1 localhost localhost.unila.ac.id
127.0.0.1 localhost localhost.unila.ac.id

(settingan diatas hanya contoh, sesuaikan dengan nama domain anda)

NOTE! Hostname pada /etc/hosts harus sama dengan hostname pada /etc/rc.conf. Anda juga dapat melihatnya dengan command:

# hostname
fisip2.unila.ac.id
fisip2#

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