Moving Joomla to a New Server

Ask your web hosting provider to help with the final part to ensure your site is set the next day. Keep in mind, this is only one way to do this.

First question, does your server have cPanel? Do you have Filezilla? These instructions are for that. If you do not have these, you might want to ask your hosting provider to help with these instructions. If you do have cPanel:

Prepare Your Site for The Move

Go into your cPanel and find File Manager. In here, either select public_html to get your root website or go in and select the folder that your website is residing in. Then click compress to make your site easier to transfer. Download it to your computer.

Log in to the cPanel Screen

Go to your cPanel's main page again and choose phpMyAdmin. in here, select the database of your Joomla site and click Export at the top. This will bring out all of your site's important configurations and other information. Download this .sql file to your computer as well.

Log in to the cPanel Screen

Log in to the cPanel Screen

Adding the New Database

Log into your cPanel on your new server and choose MySQL Databases under the Databases tab. Through here, create a new database, and add a user to it with full permissions. Next, go back to the main cPanel page and click phpMyAdmin. When in here, you should have your database from your current Joomla site. Ignore that, click the new Joomla database and immediately press Import. When browsing, choose the .sql file you have downloaded and select Go.

Uploading the Site

Next go back to your cPanel main page. From here, click File Manager. Choose your document root for mytestsite.com and click Go. Create a new folder that will hold the new website for temporary editing before it goes live. When it is created, go into that folder and choose Upload. Upload the .zip file that was downloaded earlier.

This may take some time so if you have a faster FTP program to transfer files, such as Filezilla (which is recommended to download) then upload it through here. Go back to the cPanel File Manager when uploaded and then choose Extract. This should take out all website files in the same order as you had had it.

Now you must connect the new website properly to the new database. Find the file configuration.php and change these values, making sure you back up this file before changing it. For example:

PHP Code:
  1. var $log_path = '/home/testsite/public_html/mytestsite/logs';
  2. var $tmp_path = '/home/testsite/public_html/mytestsite/tmp';
  3. var $user = 'mytestsite_dbusername';
  4. var $db = 'mytestsite_dbname';
  5. var $password = 'testsitepw';
  6.  

Make these match whatever the values for your server are.

Testing

Test logging into the administrator part of your site.
UN: admin
PW: mytestsitepassword1

You may want to make this testing site a subdomain so that you can access it separately from the main site. You can do this in cPanel under Subdomains (optional). Also make an FTP account for this site, this way if you use Filezilla or another program you can easily access files.

Going Live

When ready to go live, preferably do this at night when there are less website visitors, and have your FTP program open (like Filezilla). Create a folder for your old site and and drag all files and folders in there (except for the new site's folder). Go into the folder of your new site, select all of the files and folders and drag it to the top where you see a folder with ellipsis. This will move it into the root of your website. Do the same instructions with the configuration.php file, now changing only the log path, tmp path and password, since the database is set.

PHP Code:
  1. var $log_path = '/home/testsite/public_html/mytestsite/logs';
  2. var $tmp_path = '/home/testsite/public_html/mytestsite/tmp';
  3. var $password = 'testsitepw';
  4.  

Leave any questions or comments below or in the forum.

Add comment


Security code
Refresh

Search

Visit fbetting.co.uk Betfair Review