How to fix AH00558: httpd: Could not reliably determine the server's fully qualified domain name
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
[root@maswachid 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 ]
[root@maswachid bin]#
Edit the httpd config[root@maswachid bin]#
[root@maswachid bin]# vi ../conf/httpd.conf
[root@maswachid 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
[root@maswachid bin]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@maswachid bin]#
Tidak ada komentar :
Posting Komentar