Written by Marco Conti Wednesday, 14 November 2007 17:11
This is a brief "how to" on how to move your Joomla, Zen Cart website or pretty much any PHP based open source script from server to server or within your own server.
Moving sites around using Cpanel or Plesk is quite easy and there is no reason you should not be able to do it on your own. Cpanel, as in many other things is quicker and easier than Plesk, but still it's entirely possible to move your Plesk based site by following the steps below. Just adapt for the features plesk is missing and you should be fine.
Note: these steps are specific to Joomla and Cpanel/WHM. If there are enough requests I'll be happy to make changes to include Plesk and other scripts more specifically.
The first step in making any site move is to backup what you have.
Cpanel provides you with an handy "Backup" button on it's main page. While it's possible to backup the entire server that way, or even to move a site directly using WHM, I am going to stick to the simple way here as it doesn't require winded explanations and it's still quite easy.
Here your life will be a lot easier if on the new server you can have the same username and password as on the old one, at least at the beginning.
Go to Cpanel on the new server and create a new database, entering the same dbuser, dbname and dbpass as the ones you got from the configuration.php file
Now it's time to upload the file system to the server. Here, depending on your specific Cpanel type you'll have several choices:
Extract the backup from the old Cpanel locally and open the public_html directory.
Select all your files and zip them again (or gzip, doesn't matter). What we need to do is make sure that when we let Cpanel 'expand' the files on the server they do not create another directory below public_html with the name of the archive. Otherwise you'll need to then move the files over a directory
Next, we upload the compressed archive to the public_html directory using Cpanel "file Manager" feature. This will open a new window with the files. Navigate to public_html and once it's opened click on "upload file"
Once the file is uploaded, click on the filename (clicking on a directory opens the directory, clicking on the filename select the file or directory for user intervention)
On the top select "unarchive" and Cpanel will expand all the files in the server.
Now, connect through SSH or FTP and open the "configuration.php" file. If nothing has changed fine, but if your user account is different or you are placing the file in a directory structure not identical to the one you had before, you need to edit the following lines:
Now, let's go to the database area of Cpanel. Click on "New" and copy past the database and user names from the :"configuration.php file in your Joomla.
Once that's done, simply go once again to the "backup" area and click on Upload under the database line and upload your DB bacup from the old server.
If everything was done properly, your Joomla site should be working now.
| < Prev | Next > |
|---|
Conticreative offers Individual and Corporate training (in person or online) on Joomla, Wordpress, Zen Cart and other leading Open Source scripts.