How to clone a base ISPConfig server to get new ISPConfig servers?

Discussion in 'Installation/Configuration' started by gsc-frank, Jun 25, 2013.

  1. gsc-frank

    gsc-frank New Member

    Hi all,

    I installed ISPConfig on Ubunut 12.04 (lets said that with a domain name 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 to the new domain, let said

    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:

    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
  2. gsc-frank

    gsc-frank New Member

    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/
    sudo rm /etc/ssh/ssh_host_dsa_key /etc/ssh/
    sudo rm /etc/ssh/ssh_host_ecdsa_key /etc/ssh/
    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/
    sudo nano /etc/webalizer/webalizer.conf
    sudo nano /etc/mailman/
    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

Share This Page