Minggu, 14 Oktober 2018

How to fix AH00558: httpd: Could not reliably determine the server's fully qualified domain name

  Tidak ada komentar
Some day i got an error AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message on my apache server 
[[email protected] bin]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
                                                           [  OK  ]
[[email protected] bin]# 
Edit the httpd config
[[email protected] bin]#
[[email protected] bin]# vi ../conf/httpd.conf
[[email protected] bin]#
Set the server name with localhost
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80

ServerName localhost
#
And it uses 127.0.1.1 if it is inside your /etc/hosts:

127.0.0.1 localhost
127.0.1.1 myhostname
Restart httpd service again
[[email protected] bin]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[[email protected] bin]#

Tidak ada komentar :

Posting Komentar