Migrate current ISPConfig server to VMware appliance..

Discussion in 'Installation/Configuration' started by rdeussen, Nov 13, 2006.

  1. rdeussen

    rdeussen New Member

    Hi All,

    I've created a backup of alle the needed files using some simple scripts;

    /bin/tar cpvzf /root/backup/mysql-data.tgz /var/lib/mysql
    /bin/tar cpvzf /root/backup/system-files.tgz /root/ispconfig/ /home/admispconfig/ /home/www/ /var/www/ /var/lib/named/etc/bind/ /var/mail/ /etc/

    mysqldump -h localhost -u root -ppassword -c --add-drop-table --add-locks --all --quick --lock-tables db_ispconfig > /root/backup/sqldump.sql

    I configured and installed vmware + ispconfig image (downloaded from the web)

    and now the migration process starts ...

    differences between my orginal ispconfig and the new one;
    - older os and packages.
    - different db name (db_ispconfig is used on my old system, dbispconfig on the vmware image)
    - in the vmware there are minor changes regarding php for example (it's wrapped)
    - I'm using a private ip now instead of public. NAT is used for the public > private mapping

    so i followed:


    but ...

    i get stuck into the apache2 messages":

    /etc/init.d/apache2 restart
    Forcing reload of web server: Apache2 ... failed!
    You may still have some apache2 processes running. There are
    processes named 'apache2' which do not match your pid file,
    and in the name of safety, we've left them alone. Please review
    the situation by hand.
    Syntax error on line 99 of /etc/apache2/vhosts/Vhosts_ispconfig.conf:
    Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration

    so i followed:


    rm -f /etc/apache2/mods-enabled/php4.conf
    a2enmod php4

    this command shows:
    This module does not exist!

    /etc/init.d/apache2 restart display's ofcourse the same error.

    What am i doing wrong?
    Last edited: Nov 13, 2006
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    If you want to migrate ISPConfig to the VM, you will have to install the exact same version of ISPConfig on both servers. I recommend to upgrade bothe servers to the latest ISPConfig version, and then migrate the ISPConfig database (it does not matter if the database has another name, you will have to migrate just the content without the tables isp_server and isp_server_ip. Then migrate the other files as described in the post you mentioned above.
  3. rdeussen

    rdeussen New Member

    It works! ISPconfig > vmware appliance

    Hi All,

    Jus to let you know that my test scenario works!

    What i did; I post my howto soon;
    backup system
    install vmware server
    download vmware ispconfig appliance
    upgrade to 2.2.7
    restore system
    change some things (ip's, servername, and manual configs..)

    I'm thinking about scripts for;
    backup & restore

    So everything is done almost automaticly...

    My howto will be there upcoming monday ...

  4. falko

    falko Super Moderator ISPConfig Developer

    That would be great! :)
  5. cjsteel

    cjsteel New Member

    Sounds great, looking forward to seeing it

    Sounds great, hope to see it soon. If you need a tester I volunteer


  6. rdeussen

    rdeussen New Member

    Update, NO howto yet ...

    People's ..

    Just to inform you that it was terrible today, and absolutely no time for this. However, this is scheduled for this week to finish ...just keep checking this post ...

Share This Page