New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Apache Error
I am getting a kind of virtual host error
Comments
Google the error.
httpd apr_sockaddr_info_get() failed CentOS
I assume you're using CentOS because of Kloxo, and BUF143 is the hostname?
You're not getting "some kind of virtual host error", address is already in use. In other words, apache is already running.
It would be best to look at the errors that it's dying on, instead of whatever it prints the most of.
Yes i am running kloxo.
And i coudnt find what to change. I just removed the # and one error got away
http://prntscr.com/yt6fk
And now i have http://prntscr.com/yt6l2
How to check
You are using putty, yes? It is a lot easier for both you and us to select the text and paste it here instead of making an image.
Here You go
[root@BUF143 conf]# httpd
[Mon Apr 01 16:48:21 2013] [warn] VirtualHost 192.227.156.50:80 overlaps with VirtualHost 192.227.156.50:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Apr 01 16:48:21 2013] [warn] VirtualHost 192.227.156.50:443 overlaps with VirtualHost 192.227.156.50:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Apr 01 16:48:21 2013] [warn] VirtualHost 192.227.156.50:80 overlaps with VirtualHost 192.227.156.50:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Apr 01 16:48:21 2013] [warn] VirtualHost 192.227.156.50:443 overlaps with VirtualHost 192.227.156.50:443, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Apr 01 16:48:21 2013] [warn] VirtualHost 192.227.156.50:80 overlaps with VirtualHost 192.227.156.50:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Mon Apr 01 16:48:21 2013] [warn] VirtualHost 192.227.156.50:443 overlaps with VirtualHost 192.227.156.50:443, the first has precedence, perhaps you need a NameVirtualHost directive
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Paste your httpd.conf and also the output of
netstat -tulpn|grep ':80'
info
[root@BUF143 conf]# cat /etc/hosts
Do not remove the following line, or various programs
that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
[root@BUF143 conf]# netstat -tulpn|grep ':80'
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 6754/httpd
Httpd.conf http://pastebin.com/VDzbG6Xm
You know it is a service, right? Type "service httpd stop" to stop it (it's obviously already running) and "service httpd start" to start it.
When executing this i get the same error.
You need to run stop first. If you did, also try "killall httpd".
Just starting gives error. Other executing properly.
what error ?
try adding
in httpd.conf
Done everything same error.
You have bad directives in the hosts. Please tell us what do you have here /etc/apache2/sites-enabled
If you are using Kloxo, and you are using mod_ruid2, turn of the mem_cache option. And yes version 6.1.10 of Kloxo is stable but has some vulnerabilities, but version 6.1.12 not stable in some servers.