Tuesday, 28 May 2013

avahi_entry_group_add_service_strlst("localhost") failed: Invalid host name (Internal Server Error)

When run this url : http://localhost

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.15 (CentOS) Server at Port 80

checking log file in /var/log/httpd/error_log
avahi_entry_group_add_service_strlst("localhost") failed: Invalid host name

Solution : Completely remove httpd package then install again httpd package  

[root@localhost opt]# yum remove http*

[root@localhost opt]# find / -name http* (Remove all entry from the linux)

[root@localhost opt]# rm -rvf /etc/httpd

[root@localhost opt]#rm -rvf /var/log/httpd/

[root@localhost opt]# rm -rvf /usr/lib64/httpd/

[root@localhost opt]# rm -rvf /usr/share/doc/perl-Net-Server-0.97/examples/httpd

[root@localhost opt]# find / -name httpd (If you will get blank  then install httpd ) 

[root@localhost opt]# yum install http*

[root@localhost opt]# service httpd restart

Stopping httpd: [ OK ]

Starting httpd: [ OK ]

[root@localhost opt]#

No comments:

Post a Comment

Install XRDP in Centos 7

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum update yum groupinstall "GNOME Desktop" ...