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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 25th June 2013, 18:27
gsc-frank gsc-frank is offline
Junior Member
Join Date: Jun 2013
Posts: 14
Thanks: 7
Thanked 0 Times in 0 Posts
Default How to clone a base ISPConfig server to get new ISPConfig servers?

Hi all,

I installed ISPConfig on Ubunut 12.04 (lets said that with a domain name first_installation.com) and all work fine.

I want to avoid (to save time and to avoid errors) have go through the whole installation process every time I want a new ISPConfig server. As I understand so far, the way to go is:

1- clone the server (I will always be on some kind of virtualization platform that allow me easily do that)

2- change whatever reference in the configuration file to first_installation.com to the new domain, let said nth_installation.com.

My question is, already exist a guide that for do step 2? Can anybody help me determining where I must look for those changes? I'm thinking in take the following approach:

sudo grep -R first_installation /etc/
to find references of first_installation.
2- dump ispconfig database and find if exist whatever reference to first_installation

Still I'm not sure that the above is enough. Lately I think that one must end reviewing carefully each installed package and determine possible affectations of the domain changed, but that require time... that is why I wrote this message

Thanks in advance
Reply With Quote
Sponsored Links
Old 26th June 2013, 15:53
gsc-frank gsc-frank is offline
Junior Member
Join Date: Jun 2013
Posts: 14
Thanks: 7
Thanked 0 Times in 0 Posts

Well, at the end I made the following substitutions. Would be nice if some experts take a look and certificate those steps

Seriously, I think this could be useful to lot of peoples and in that sense is good have others sysadmin input to improve those steps to clone ISPConfig installations.

sudo nano /etc/hostname; sudo nano /etc/hosts

sudo rm /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_rsa_key.pub

sudo rm /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_dsa_key.pub

sudo rm /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_ecdsa_key.pub

sudo ssh-keygen -h -N '' -t rsa -f /etc/ssh/ssh_host_rsa_key

sudo ssh-keygen -h -N '' -t dsa -f /etc/ssh/ssh_host_dsa_key

sudo ssh-keygen -h -N '' -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key

sudo nano /etc/postfix/main.cf

sudo nano /etc/webalizer/webalizer.conf

sudo nano /etc/mailman/mm_cfg.py

sudo nano /etc/mailname

mysqldump -u root -p  --lock-tables --databases dbispconfig | sed 's/OLD_DOMAIN_NAME/NEW_DOMAIN/g'  > dbispconfig.sql;mysql -u root -p < dbispconfig.sql;rm dbispconfig.sql
Reply With Quote


base server, clone, domain change, ispconfig 3

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
ISPConfig3 mail doesn't work pehden Installation/Configuration 20 9th December 2013 15:05
Version 1.3 of the ISPConfig 3 Manual is finally available! falko General 44 2nd December 2011 13:04
Not working emails (DNS and postfix problem?) shekiman Installation/Configuration 9 1st March 2011 17:25
Sending mail ISPConfig 3 but not receivind catza Installation/Configuration 20 19th May 2010 13:47
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 17:11

All times are GMT +2. The time now is 08:24.

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