Google Ads Top

Peter's Blog

Practical Web Design, Development and Online Marketing


Migrating Joomla Websites to a New Server
Monday, 08 September 2008 14:36

Web ServerMigrating a Joomla website from one server to another is a very easy process. It shouldn't take very long but there are various occasions where migration might cause a head ache or two.

There are six important steps that you'll have to follow for your Joomla server migration.

This tutorial assumes that you know a little about server management and the usage of FTP and phpMyAdmin, oh and that you are using Joomla 1.5.x. You will also need all of the details of your new and old server to be able to acces all of the files and the database. So lets begin...

1) A backup of all your files

This can be done simply by logging in to your web site via FTP or via its control panel and downloading all of the files. I personally like to use a FTP program such as SmartFTP or FireFTP that integrates itself with FireFox. Make sure you get all of the files in your live public directory. Marjority of servers either have a default pulic directory of "public_html" or "html".

If you are migrating from a local development server you should be able to get easy access to your files for migration.

2) Database backup

This step is a little tricky but it is made easier with a few tools and components that you can get to install on to your site. Basically what you'll need is a complete dump of your site's database. I like to use phpMyAdmin personally but you can get a dump of the database anyway you want. Some tools that you can install in to Joomla that will make the process easier include:

LazyBackup

and

JoomlaPack

With these two tools you can not only pack and download your database for migration but also set them up for automated backups.

LazyBackup is a fantastic and simple database backup tool for Joomla that posts the backups to your email address that you can define in the plugin's configuration. Backing up your site has never been so easy. The plugin also works natively in Joomla 1.5.x.

JoomlaPack is a more robust AJAX driven component that also allows you to backup all of the files on your site. This is also useful as it allows for the complete download of your site's files in one fast download.

3) Upload your site

Next you'll have to FTP in to your new server and upload all of your files. This is a pretty easy and straight forward step. Just the opposite of backing up and downloading all of your files from your old server.

4) Database migration

So this bit is a little tricky. The easiest way is to use a database tool such a phpMyAdmin. This will allow you to create a new database and then simply upload the backup that you have made to it.

Most modern web hosts will have phpMyAdmin installed as a default feature of your services. If you don't, ask for your host to install them.

If you're migrating to your own host and you don't have phpMyAdmin yet, simple download it from the site and install it to your server. It's another great open source project.

Alternatively you can telnet in to your server and run your MySQL commands to upload your database to the new server. This is alot more complicated and pretty time consuming if you don't know what you are doing.

5) Updating the configuration

Now the last thing you'll have to do is update the configuration.php file in your site and re upload it to your server. You'll need to update all of the database related information including the new database name on your server, username and password.

This is enough to get your site back up and running on your server. You'll will then have to change all of the log directories and the temp folders to match that of your new server as well. Once you've update just upload it all to your new server and you should be ready to go.

Here is a list of all the variables that you are most likely going to need to change and update to match your new server

var $log_path = '/;
var $tmp_path = '/';
var $ftp_enable = '1';
var $ftp_host = ';
var $ftp_port = '21';
var $ftp_user = '';
var $ftp_pass = ';
var $ftp_root = '/';
var $dbtype = 'mysql';
var $host = 'localhost';
var $user = '';
var $db = '';
var $dbprefix = 'jos_';
var $password = '';

 

6) Updating Folder Permissions

If you are using Joomla 1.5.x and have FTP enabled on your site then you should not have to do this step as the system itself can simply overide permissions and do what it needs to do.

If you don't or you are having some issues with folder permissions then you'll need to update the permissions to some of the folder in your installation directory.

These include:

/cache
/tmp
/log
/images

You'll need to change the permissions on these folders to 777 or all read and write.

If you're changing from one live server to another then you'll have to update the name servers for your domain and that is a little beyond the scope of this step by step tutorial but if you're migrating from a local development server then you should be all ready to go.

Other uses: Custom base installations

So now that you know how to pack a site and move it to a new server you can also use this method to create default installations.

Migrating a Joomla 1.0.x installation is pretty much the same. Using FTP and phpMyAdmin is usually all you need.

At PB Web Development we have pre packaged installations of Joomla that have a selection of our favourite components, modules and plugins that allow us to create and modify our Joomla installations the way we want them. We found that the default installation has way too many unnessesary content and menu items that need deleteing.

Good luck and keep Joomlaing.

Trackback(0)
Comments (2)add
...
written by adtech ile reklam 2.0 dönemi başlıyor ve Trkycmhrytllbtpydrklcktr r10.net seo yarışması , December 10, 2008
thenk you
report abuse
vote down
vote up
Votes: +0
...
written by micah swabb , January 25, 2009
Thank you for this tutorial. The subject of moving a Joomla 1.5 site to another web server isn't covered in the Joomla Wiki. I just did my first migration from my development server over to a client's live server, and it's gone smoothly.

Here are some additional steps which I had to make:
1) if you have licenses for 3rd party extensions, you may want to login to your accounts at those 3rd party web sites in order to update the web address where you're using the extensions.
2) because I'm using apache mod_rewrite to handle search engine optimized URLs, I have a .htaccess file, however it was not copied over in my zipped files, so I had to FTP it over afterwards.
report abuse
vote down
vote up
Votes: +0
Write comment
smaller | bigger

busy
 
Site development and managed by PB Web Development