How to transfer my Joomla site from one host to another?

Transferring Joomla 2.5 and Joomla 3 from one host to another is done in 3 steps. First one is to transfer your files, second one is to move your database and the third step is to configure your Joomla configuration.php file.

1. You need to download your Joomla files and upload them on your new hosting account. This can be easily done using the FileZilla software if your old hosting provider supports FTP. Detailed article on how to use FileZilla can be found here.

*Note you must upload your Joomla files in the Public_html folder as this is your hosting root directory.

2. Export your MySQL database from your previous hosting provider. Create a new database and import your MySQL database through the phpMyAdmin on your hosting account with us, you can see how here.

With this you have completed the first two steps in the transfer process. Now you have your Joomla moved over, but when you access it you might see an error that MySQL database connection could not be established.

cPanel Hosting from WebhostFace

3. Since you have created a new MySQL database and imported the SQL file, the username and password for the database itself will be different. What you need to do is modify the Joomla configuration.php file and edit the following lines.

  • public $user = ‘Database User‘;
  • public $password = ‘Password‘;
  • public $db = ‘Database Name‘;

The new database details are the ones you have set in step 2.

and

  • public $log_path = ‘/home/USERNAME/public_html/logs’;
  • public $tmp_path = ‘/home/USERNAME/public_html/tmp’;

*Note that the username in the paths is your username of the cPanel of the account with us.