Jumat, 07 September 2018

How to solved error AH00557: httpd: apr_sockaddr_info_get() failed for cloud

  Tidak ada komentar
Some day as system engineer i face an error "AH00557: httpd: apr_sockaddr_info_get() failed for cloud" on my httpd service as following figure and i try to solve it by trying and search on internet for the answer and here i sharing how to solve the same trouble if you face it
[root@cloud modules]# sudo service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Sat Sep 08 12:17:05.429999 2018] 
AH00557: httpd: apr_sockaddr_info_get() failed for cloud
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
                                                           [  OK  ]
[root@cloud modules]#

Open file hosts and add the ip address and hostname
[root@cloud html]# vi /etc/hosts
[root@cloud html]#

You can see the example in following figure
[root@cloud html]#
[root@cloud html]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1   pelaut-cloud

[root@cloud html]#

Restart the httpd service again
[root@cloud html]# sudo service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Sat Sep 08 12:23:48.573491 2018] 
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
                                                           [  OK  ]
[root@cloud html]#

The error was gone 

Tidak ada komentar :

Posting Komentar