Error Ketika Restart Apache Di Linux Opensuse


Error ketika restart apache dan loadingnya lama ketika restart apache, ebrarti di config apachenya ada yang salah, lihat di bawah sample error nya.

linux-dkxa:/home # /etc/init.d/apache2 restart
httpd2-prefork: apr_sockaddr_info_get() failed for example2
httpd2-prefork: Could not reliably determine the server's fully qualified domain
Syntax OK
Shutting down httpd2 (waiting for all children to terminate)
Starting httpd2 (prefork)
linux-dkxa:/home # httpd2-prefork: apr_sockaddr_info_get() failed for example2
httpd2-prefork: Could not reliably determine the server's fully qualified domain
^C

Error server apache di opensuse ini di sebabkan karena di server Opensuse nya tidak ada NameServer nya, maka dari itu kita harus add line Server name di confignya

# vim /etc/apache2/listen.conf

Tambahkan line servernamenya di bawah lihat contoh

# Use name-based virtual hosting
#
# - on a specified address / port:
#
#NameVirtualHost 12.34.56.78:80
#
# - name-based virtual hosting:
#
#NameVirtualHost *:80
#
# - on all addresses and ports. This is your best bet when you are on
#   dynamically assigned IP addresses:
#
#NameVirtualHost *
ServerName opensuse

Dan silahkan di coba lagi restart apache nya

# /etc/init.d/apache2 restart
Syntax OK
Shutting down httpd2 (waiting for all children to terminate)                 done
Starting httpd2 (prefork) 

semoga bermanfaat ya untuk semua yang pernah mampir di blog kecil saya ini.

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