In this tutorial we will show how to move Joomla website from one host/localhost to another. Assume you have installed and modified Joomla template on localhost and wish to move it to the live host.
First step is upload Joomla files and directories.
- Make a backup of your Joomla website. See backup tutorial.
- Login to Cpanel
- Go to File Manager.
- Select public_html director.
- Make sure the directory is empty. Upload all files from backup by clicking on Upload button.
Second step is Import database.
- Login to Cpanel.
- Go to MySQL Database Wizard.
- Create New Database.
- Go to phpMyAdmin -> your database.
- Click Import in the top tool bar.
- Browse backup sql file and click Go.
- After the database is uploaded, the tables should appear under database.
Third step is Joomla configuration.
- login to Cpanel
- Go to File Manager.
- Select public_html directory.
- Select configuration.php and click edit on top tool bar.
- Find and enter your new database details in following lines:
public $dbtype = 'mysql'; public $host = 'localhost'; public $user = 'database_user'; public $password = 'password'; public $db = 'database_name'; public $dbprefix = 'jos_';
- Find and enter your new site URL in following line
public $live_site = ‘domain.com';
- Edit the path for logs and tmp directory by editing these lines:
public $log_path = '/home/username/domains/domain.com/public_html/joomla/logs'; public $tmp_path = '/home/username/domains/domain.com/public_html/joomla/tmp';
- Save configuration.php file.
- Input your domain name in browser. You should see your Joomla website on live host now.
