We're upgrading our support forum. Replies are currently closed. Please view our Documentation and FAQ using the menu above.

There’s a smarter approach to accomplish this.

This afternoon i migrated my complete installation to another (virtual) machine.
I stopped the webserver and took a backup from the database using phpmyadmin.

on the new host you create and restore the mysql database using the same name as the original db.
Make sure to create a user in mysql using the proper db rights.

Then you do a clean install using the install-free.php script.

Enter the db server info and it will see the filled tables.

Then you open the hosts file of your working machine (laptop/desktop) and fool your computer
to think it’s still connecting to your old installation.

example

old server hostname: server1
old server ip: 192.168.10.1
new server hostname: server2
new server ip: 192.168.10.2

so this is wat your enter in your hosts file:

################ Hosts file ################

192.168.10.2 server1
192.168.10.2 server1.acme.com

———————————————

If you do a ping to server1 it should now resolve to 192.168.10.2

The example is a standard class C network, but you can also do this
with public ip’s and FQDN’s.

Then you can login using the url of the old server and change the url or other settings.

It took some time figure it out, so i thought i would share with you.

And don’t forget to clean up the hosts file, or you can never connect to server1 usings it’s hostname !!!

and don’t forget to copy custom created files from the old webserver directories, so maybe it’s smart to
do copy from the old webserver dir to the new one WITHOUT overwriting files.

Grtz

Paul Buijtels
Compass IT

pbuytelsReply To: Moving between servers