Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Apache Error
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.

Apache Error

picypicy Member
edited April 2013 in General

I am getting a kind of virtual host error

http://prntscr.com/yt54e

Comments

  • edited April 2013

    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.

  • picypicy Member

    @MannDude said: httpd apr_sockaddr_info_get() failed CentOS

    I assume you're using CentOS because of Kloxo, and BUF143 is the hostname?

    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

    @Damian said: 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.

    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.

  • picypicy Member

    @superpilesos said: 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'

  • picypicy Member

    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

  • picypicy Member

    [root@BUF143 conf]# netstat -tulpn|grep ':80'
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 6754/httpd

  • 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.

  • picypicy Member

    @superpilesos said: "service httpd start"

    When executing this i get the same error.

  • superpilesossuperpilesos Member
    edited April 2013

    You need to run stop first. If you did, also try "killall httpd".

  • picypicy Member

    Just starting gives error. Other executing properly.

  • tommytommy Member

    what error ?

    try adding

    ServerName www.blablabla.com 

    in httpd.conf

  • picypicy Member

    Done everything same error.

  • netomxnetomx Moderator, Veteran

    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.

Sign In or Register to comment.