View Full Version : Apache Problem with HA Load Balancer
medienlounge
1st September 2009, 16:14
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:
(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
falko
2nd September 2009, 14:45
HAProxy is listening on port 80 already. You must run Apache on different servers, as shown in the tutorial.
medienlounge
3rd September 2009, 09:56
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
falko
4th September 2009, 18:46
i can switch the apache in the lb to e.g. port 81 or 8080?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).
medienlounge
4th September 2009, 19:26
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?
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.