Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th August 2007, 12:59
amohammad amohammad is offline
Junior Member
 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to start apache2 on Heart beat

hi
Iam a newbie here and also newbie in HA, ive configured two clusters with
crm can some 1 plz elaborate specifically that wat should i do for
starting of apache2 from HA (HA two clusters are up and monitor is showing
but monitor shows 0 resource configured)
iam using debian etch
and apache2
and heartbeat 2.1.2

my ha.cf looks like
-----------------------
#logfacility daemon
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility daemon
keepalive 1
deadtime 10
warntime 5
initdead 120 # depend on your hardware
udpport 694
ping 10.1.1.49
bcast br0
#bcast eth1
auto_failback off
node iksws115
node nccpl-server
use_logd yes
compression bz2
compression_threshold 2
crm yes
respawn hacluster /usr/lib/heartbeat/ipfail
apiauth ipfail gid=haclient uid=hacluster
----------------------------------------------


my authkeys looks like (with permission 600)
-------------------------
auth 1
1 sha1 PutYourSuperSecretKeyHere
--------------------------------

my haresources looks like
---------------------------
iksws115 10.1.1.91 apache2
----------------------------

my crm_mon -i5 outputs
-----------------------

Last updated: Fri Aug 24 12:23:07 2007
Current DC: iksws115 (0debf1de-2c2e-455f-aed4-379413ee0439)
2 Nodes configured.
0 Resources configured.
============

Node: iksws115 (0debf1de-2c2e-455f-aed4-379413ee0439): online
Node: nccpl-server (e2039328-7ddf-40b2-88c7-92bbe3cd7036): online
--------------------------------------------------------------------

please help me ASAP cz iam only stuck cz of this

thnx in advance

regards
Ali
Reply With Quote
Sponsored Links
  #2  
Old 25th August 2007, 15:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Did you take a look at this tutorial? http://www.howtoforge.com/high_avail...apache_cluster
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 12th October 2007, 06:46
dogar dogar is offline
Junior Member
 
Join Date: Jul 2007
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default heart beat ldiractor not work

Hi Mr.falko
How are you.
The problem is that,i use your configration.same as u give.only ip changes.
heart beat working fine, it is tested.but ldiractrod is not working.
we i restart heart beat it fail to rum ldiractrod and following error message is shown.
the error message is look like ...
Error [] reading file /etc/ha.d/ldiractrof.cf at line 7 unknown command real=10.*.*.*:80 masq

and this is my log file from /var/log/ldiractrod.log

////////////////////////////////////
[Wed Oct 10 13:15:29 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:33:52 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:33:52 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:33:52 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:33:52 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:36:33 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:36:33 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:36:35 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:36:35 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:36:36 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:36:36 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:36:37 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:36:37 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:36:39 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:36:39 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:36:40 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:36:40 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:36:42 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:36:42 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:36:43 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:36:43 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:36:44 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:36:44 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:36:46 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:36:46 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:36:47 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:36:47 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:36:48 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:36:48 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:40:08 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:40:08 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:40:22 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:40:22 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 13:40:23 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 13:40:23 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 14:08:02 2007|ldirectord] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 14:08:02 2007|ldirectord] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 14:08:50 2007|ldirectord] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 14:08:50 2007|ldirectord] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 14:11:47 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 14:11:47 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error
[Wed Oct 10 14:11:48 2007|ldirectord.cf] ldirectord is stopped for /etc/ha.d/ldirectord.cf
[Wed Oct 10 14:11:48 2007|ldirectord.cf] Exiting with exit_status 1: Initialisation Error

///////////////////////////////////
hope u help me sooon

Dogar
Reply With Quote
  #4  
Old 13th October 2007, 19:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

What's in /etc/ha.d/ldiractrof.cf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 2nd November 2007, 05:48
dogar dogar is offline
Junior Member
 
Join Date: Jul 2007
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

hi falko. hope you must be fine...
given bellow is my configration in ldirectrod.cf file


checktimeout=10
checkinterval=2
autoreload=no
quiescent=yes

virtual=192.168.100.100:80
fallback=127.0.0.1:80
real=10.0.0.1:80 masq
service=http
request="index.html"
receive="Test Page"
scheduler=wlc
persistent=600
protocol=tcp
checktype=negotiate

reply me as soon as posible

Bilal

Last edited by dogar; 2nd November 2007 at 05:56.
Reply With Quote
  #6  
Old 3rd November 2007, 10:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Do you have spaces/tabs in front of each line after
Code:
virtual=192.168.100.100:80
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSI with Apache2 on Debian jchaven Server Operation 7 25th August 2008 17:06
dns server error Hellbound General 7 2nd August 2007 09:18
Apache2 don't start /var/www/sharedip don't exist Dr.Oetker General 14 6th May 2007 13:15
Web server offline after php4 and apache2 upgrade dfriis Installation/Configuration 11 7th December 2006 16:14
Where to Start with Apache2? Vorlon Server Operation 2 20th October 2005 01:12


All times are GMT +2. The time now is 16:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.