PDA

View Full Version : Migrate current ISPConfig server to VMware appliance..


rdeussen
13th November 2006, 16:25
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:

http://www.howtoforge.com/forums/showpost.php?p=16488&postcount=2

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:

http://www.howtoforge.de/forums/showthread.php?p=23792

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?

till
14th November 2006, 11:37
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.

rdeussen
14th November 2006, 12:29
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 ...

Greetz
Ralph

falko
15th November 2006, 14:35
My howto will be there upcoming monday ...

Greetz
Ralph
That would be great! :)

cjsteel
20th November 2006, 01:57
Sounds great, hope to see it soon. If you need a tester I volunteer

;)

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 ...

Greetz
Ralph

rdeussen
20th November 2006, 19:31
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 ...