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 4th April 2009, 22:43
wxman wxman is offline
Senior Member
 
Join Date: May 2007
Posts: 189
Thanks: 11
Thanked 2 Times in 2 Posts
Default Using ISPConfig on mirrored primary and secondary servers

I hope Till or Falko sees this because they've covered articles about it before.

I've been experimenting with ways to do two Linux servers using ISPConfig, and Webmin. I used past discussions get the idea how to set it up so I could use my second server as a backup to the first, as well as a slave nameserver. I then used rsync and mysql database replication to keep the backup server up to date.

This first problem I found was when you add a new site to the primary server using ISPConfig, it mirrors the database to the second server so now ISPConfig has the entry there as well. The problem is the site doesn't actually get made on the second server, just the entry in the DB so it looks to ISPConfig that it's there. I then thought to kill the database replication for ISPConfig to the second server, and do the entry manually. That would work except, do I make it a master, or slave file? If I make it a slave, will it still work if I have to switch over and use the secondary if the primary server went down?

I know this would all be moot it I would get brave, and redo everything to use the High-Availability Load Balancer setup.
Reply With Quote
Sponsored Links
  #2  
Old 5th April 2009, 15:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by wxman View Post
This first problem I found was when you add a new site to the primary server using ISPConfig, it mirrors the database to the second server so now ISPConfig has the entry there as well. The problem is the site doesn't actually get made on the second server, just the entry in the DB so it looks to ISPConfig that it's there.
Yes, that happens because the /home/admispconfig/ispconfig/.run file is missing - it gets created whenever you change anything in ISPConfig, so that the backend knows that it has to write some configuration files. If you mirror that file over to the second server as well, everything should be fine.
__________________
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 5th April 2009, 15:19
wxman wxman is offline
Senior Member
 
Join Date: May 2007
Posts: 189
Thanks: 11
Thanked 2 Times in 2 Posts
Default

Thanks Falco I'll give it a try today.

I went looking for that file on my primary server, but it wasn't there. Does it get removed, if so, how long is it there?

Last edited by wxman; 5th April 2009 at 15:37.
Reply With Quote
  #4  
Old 5th April 2009, 19:57
trexen trexen is offline
Senior Member
 
Join Date: Jun 2008
Location: Stockholm
Posts: 169
Thanks: 15
Thanked 3 Times in 2 Posts
Default

Mirrored primary and secondare:

How did you do to mirror /etc/passwd and shadow to the secondary server ?

rgds
Marcus
Reply With Quote
  #5  
Old 6th April 2009, 13:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by wxman View Post
I went looking for that file on my primary server, but it wasn't there. Does it get removed, if so, how long is it there?
It is created once you change something in the web interface; the ispconfig_wconf process checks the existence of the file every 10 seconds, and if it is there, it performs the necessary tasks and then deletes that file.
__________________
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
  #6  
Old 8th April 2009, 04:03
wxman wxman is offline
Senior Member
 
Join Date: May 2007
Posts: 189
Thanks: 11
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
It is created once you change something in the web interface; the ispconfig_wconf process checks the existence of the file every 10 seconds, and if it is there, it performs the necessary tasks and then deletes that file.
How do you copy that without making a cron check for it every 10 seconds?

Quote:
Originally Posted by trexen View Post
Mirrored primary and secondare:
How did you do to mirror /etc/passwd and shadow to the secondary server ?
Good question. That's not being done well either. I wonder what else I'm missing.
Reply With Quote
  #7  
Old 8th April 2009, 13:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by wxman View Post
How do you copy that without making a cron check for it every 10 seconds?
Good question. Maybe you have to write a script that takes care of this.
__________________
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
ISPConfig and multiple servers flashingcurser Installation/Configuration 5 19th December 2007 17:05
Using primary & Secondary Mail Servers. joelee HOWTO-Related Questions 2 27th July 2007 18:25
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34
Primary and Secondary nameserver move martinfst Technical 3 19th January 2007 22:33
Adding domains to non-ISPConfig secondary DNS servers cstone Tips/Tricks/Mods 4 19th July 2006 14:25


All times are GMT +2. The time now is 13:36.


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