Categories

Featured templates

Joomla 3.x. How to move your website from localhost to live host

Ammy Brown August 18, 2015
Rating: 3.2/5. From 13 votes.
Please wait...

This tutorial will show you how to move your Joomla website from localhost to the live server.

Joomla 3.x. How to move your website from localhost to live host

This tutorial assumes you have installed template on your localhost, modified it to your needs and now you wish to move your website to the live host.

  1. Backup. First, make sure a backup of your local installation has been done. We have video tutorial that will show you how to do full website backup.

  2. Copy Files and Directories of Your Local Joomla Directory to the Live Server.. Using your FTP software, upload the entire content of your local site installation to the the live /public_html/ directory on your server. You can check this instruction on how to upload files to server via FTP.

  3. Copy the Contents of the MySQL Database. In Joomla all site content is stored in site database. You need to export your localhost database:

    1. Open your database in PhpMyAdmin tool. On your local system, PhpMyAdmin tool URL will normally be http://localhost/phpmyadmin.

    2. Select the database you would like to export in the upper right-hand list and click Export at the top.

    3. Under Export Method you will be suggested to choose between the two options: Quick export and Custom export. Select Custom export and click Go.

    4. You will get the message prompting you to save backup file on your computer.

    You can check our video tutorial on backing up a database for more details.

    When export is done, please do the following:

    1. Create the database on your live server.

    2. Open your database in PhpMyAdmin tool on your live server.

    3. Click Import in the top tool bar.

    4. Browse your backup file and click Go.

    5. After the database is successfully uploaded, you should see its tables by clicking on the database name.

    Our video tutorial on importing sample data dump file will show you how to upload database backup file.

  4. Adjust the Joomla configuration file.

    The last thing you will need to do is to adjust the Joomla configuration file in order to match the database, website URL, log and tmp directory paths.

    1. Open configuration.php file in any text editor on your computer.

    2. You can locate configuration.php file in your live server Joomla root installation folder.

    3. Find the following lines for the database settings:

            public $dbtype = 'mysql';
            public $host = 'localhost';
            public $user = 'database_user';
            public $password = 'password';
            public $db = 'database_name';
            public $dbprefix = 'jos_';
            

      Enter your new database details to the code above.

    4. Then locate the following line:

      public $live_site = ‘domain.com';

      Where domain.com is your new site URL.

    5. Finally, edit the path for logs and tmp directory. They can be adjusted 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';

      Change tmp_path and log_path URLs. Local host and live server path differs.

Feel free to check the detailed video tutorial below:

Joomla 3.x. How to move your website from localhost to live host

This entry was posted in Joomla! Tutorials and tagged joomla, live, local, move, server. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket