Moving Joomla 3x from localhost to a remote host

28 Jul

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

Hosting requirements

You’ll need to meet the following requirements below.

Moving Joomla 3x from localhost to a remote host - 01

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.

Moving Joomla 3x from localhost to a remote host - 02

2. Upload the file (.zip) to remote host then extract it.

Go to Cpanel then click on “File Manager“.

Moving Joomla 3x from localhost to a remote host - 03

Click on “Upload” button.

Moving Joomla 3x from localhost to a remote host - 04

Click on “Browse” to upload your file.

Moving Joomla 3x from localhost to a remote host - 05

Extract the file.

Moving Joomla 3x from localhost to a remote host - 06

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”.

Moving Joomla 3x from localhost to a remote host - 07

Select the database you want to export. In the example below, the database “joomla3” is selected. Select options such as image below.

Moving Joomla 3x from localhost to a remote host - 08

4. Create Database on Cpanel.

Go to Cpanel home page, click on “My SQL Database“.

Moving Joomla 3x from localhost to a remote host - 09

Creat New Database, creat new user then Add user to database.

Moving Joomla 3x from localhost to a remote host - 10

5. Import Database.

Go to Cpanel home page, click on “phpMyAdmin”.

Moving Joomla 3x from localhost to a remote host 11

Click on database that you’ve created in Step 4.

Moving Joomla 3x from localhost to a remote host 12

Click on “Import” tab, click on “Browse” to select the database file then click “Go

Moving Joomla 3x from localhost to a remote host 13

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’;

abc” is the username for login into cpanel.

See this tutorial by video (Presented by PhuocUB)

3 Responses to “Moving Joomla 3x from localhost to a remote host”

  1. Timothy June 13, 2014 at 8:00 am #

    If you are going for finest contents like I do, only pay
    a quick visit this website daily for the reason that it
    provides quality contents, thanks

  2. Shumon October 23, 2013 at 2:31 pm #

    Dear Phuoc Ngoc,

    Very nice tutorial, thanks!

    I am a web designer, recently working on a website on Joomla 3. I followed every step like you showed here point by point, all are done. But the site doesnt run showing an error message “Your host needs to disable magic_quotes_gpc to run this version of Joomla!”.
    My hosting company says, its a shared hosting, so they dont have any option to overcome.
    Meanwhile I tried to put php.ini with .htaccess in, but no result.
    Can you help on this issue?

Leave a Reply