| Migrating Your Joomla Web Site To A New Server |
| Blog |
| Thursday, 17 November 2011 20:15 |
Some find the thought of migrating servers a daunting task, the following tutorial explains just how simple it actually is
Step 1Backup Your Source FilesThis 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 FileZilla. Make sure you get all of the files in your live public directory. Majority of servers either have a default public directory of “public_html” or “html” or "www". Step 2Backup Your DatabaseDownload LazyBackup and install onto your Joomla web site.
3) Upload your siteNext you’ll have to FTP in to your new server and upload all of your files. 4) Database migrationThe 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. Access your web hosting control panel, and create a new database giving it username permissions or whatever your server requires, my server is running cpanel so I will be able to answer questions on cpanel based backups/migrations. Once in php my admin, select your database that you have just created and import the sql database that was sent to your email inbox earlier. 5) Updating the configurationYou willneed to update all of the database related information including the new database name on your server, username and password in your configration.php file, this file can be found in the main ftp directory and is called "configuration.php". Simply look for the old database username, password and database name and update to your new ones. 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
Here is an explanation of each of the variables to help you on your way. $log_path $tmp_path $ftp_enable $ftp_port $ftp_user $ftp_pass $ftp_root $user $db $dbprefix $password 6) Updating Folder PermissionsIf 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 You’ll need to change the permissions on these folders to 755 or all read and write. This previously read 777 and as a security measure, it should be set to 755. Under no circumstance should any folders in your Joomla installation to 777. 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. |



