In the previous post, i have guided you how to install joomla 3x using cpanel. This time, i will be moving joomla 3x from localhost to a remote host. This joomla video tutorials assumes you have installed Joomla 3x on your local computer, you have created a website and you now wish to copy this website to your remote host.
Moving Joomla 3x from localhost to a remote host
You’ll need to meet the following requirements below.
Move joomla 3x
1. Compress Joomla folder on your computer.
Open your joomla folder. Press Ctrl + A, right click on joomla folder, point to Add to archive then choose ZIP in archive format.
2. Upload the file (.zip) to remote host then extract it.
Go to Cpanel then click on “File Manager“.
Click on “Upload” button.
Click on “Browse” to upload your file.
Extract the file.
3. Export database on localhost.
Open phpMyAdmin on your local system by navigating to it’s URL with your browser. On your local system, this URL will normally be “localhost/phpmyadmin”. Note: If you have a password on your database, you will be prompted for it.
The phpMyAdmin screen will display as shown below. Click on “Export”.
Select the database you want to export. In the example below, the database “joomla3” is selected. Select options such as image below.
4. Create Database on Cpanel.
Go to Cpanel home page, click on “My SQL Database“.
Creat New Database, creat new user then Add user to database.
5. Import Database.
Go to Cpanel home page, click on “phpMyAdmin”.
Click on database that you’ve created in Step 4.
Click on “Import” tab, click on “Browse” to select the database file then click “Go”
6. Configure the Site. Edit the configuration.php file.
Manually edit “configuration.php” to tell Joomla! about your site. The file configuration.php contains settings specific to your system. This file was created for you when you installed Joomla! on your localhost. The settings in the configuration.php file that you typically need to change are shown below. This example is from a Windows localhost system.
public $log_path = ‘C:\\xampp\\htdocs\\joomla3\\logs’;
public $tmp_path = ‘C:\\xampp\\htdocs\\joomla3\\tmp’;
public $host= ‘localhost’;
public $user = ‘root’;
public $db = ‘your_local_db_name’;
public $password = ‘your_local_db_password’;
Now, at you remote host system, the settings in the configuration.php file that you typically need to change are shown below
public $log_path = ‘/home/abc/public_html/service/logs’;
public $tmp_path = ‘/home/abc/public_html/service/tmp’;
public $host = ‘name your remote host’; (Common is localhost)
public $user = ‘your_user_db_name’;
public $db = ‘your_db_name’;
public $password = ‘your_db_password’;