Apache Problem with HA Load Balancer

Discussion in 'HOWTO-Related Questions' started by medienlounge, Sep 1, 2009.

  1. medienlounge

    medienlounge New Member

    Hi all,
    i followed the tutorial:
    High-Availability Load Balancer (With Failover and Session Support) With HAProxy/Heartbeat On Debian Lenny

    Right now i get a Problem that apache is running no more (either on lb1 and lb2).
    when i try to start i get:

    Code:
    (98)Address already in use: make_sock: could not bind to address [::]:80
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs
     failed!
    
    Any ideas, or is that a normal behavior, and if, i also can´t get a website displayed with the virtual ip, although i can ping the ip
     
  2. falko

    falko Super Moderator ISPConfig Developer

    HAProxy is listening on port 80 already. You must run Apache on different servers, as shown in the tutorial.
     
  3. medienlounge

    medienlounge New Member

    ok, thanks for the reply.
    i only had a few other services running on the 2 loadbalancers and would like it to be still availible, such as munin or nagios ....

    any suggestion, that i can still use it, or do i have to transfer the setup to another server?

    i can switch the apache in the lb to e.g. port 81 or 8080?

    But what i want is that i can still access the vhosts of the lb on port 80.
    so i tried to activate the second network interface eth1, which also works to log in by ssh.

    but now, how to configure apache?

    i tried:

    NameVirtualHost 192.168.1.99:81
    NameVirtualHost 192.168.1.98:80
    Listen 81

    where 192.168.1.99 is the ip of the lb.

    But in order to get it run i need to tell apache to listen also on port 80, which doesn´t work
    because og the known error:

    (98)Address already in use: make_sock: could not bind to address [::]:80
     
    Last edited: Sep 3, 2009
  4. falko

    falko Super Moderator ISPConfig Developer

    You can either do this, or make Apache listen on another IP that is not in use by HAProxy (e.g. 192.168.1.98).
     
  5. medienlounge

    medienlounge New Member

    ok, thanks for the reply, i didn´t work it out, but think i could get it.
    if you have any ports.conf advice - that would be very helpful.

    another question, don´t know if it fits in here.

    but did anyone try or have a tutorial für a system that either has the loadbalancer with apache and the mysql cluster running.

    didnßt try it right now, because lack of computers.

    but would like to test a setup:
    2 loadbalancer
    2 apache AND mysql server
    1 mysql mgt server

    for both are tutorials in running apache or mysql,
    but is there a advice for loadbalancer setup for both, apache and mysql?
     

Share This Page