When you first try Joomla! It is often recommended that you install it on your local system. (For example, “localhost”), for example using XAMPP, and get your site running locally. Eventually, you may want to copy this site to a remote host. Fortunately, it is very easy to do.

This article assumes that you have installed Joomla! 1.5 on the local computer, you’ve created a website, and now you want to copy the site to a remote host.

Specific steps are as follows:

The establishment of local installation of Joomla on your remote host!
If this is a new site, it is your home directory. If you have an existing site, such as www.domain.com, you want to keep, and you and Joomla! Work, you can create a sub-domain, for example, www.domain.com / subdirectory to hold your Joomla! on site.

Copy the files and directories to a remote host to your local Joomla directory

You have two methods:

  1. All files uploaded via FTP or a
  2. Upload only FTP archive

By uploading FTP all files
Often, the easiest way to copy these files using FTP client program, such as Filezilla.

All files from the local host directory (with XAMPP, that directory becomes XAMPP / network / directory) and upload it to the remote host HTML directory domain, or to a remote host HTML subdirectory.

129

Upload the compressed file
Copying a large number of individual files using FTP is sometimes unreliable. If you have the source, you can create all the files on the source system contains a compressed archive files on the target system both command-line access, then a single file transfer to the target system, it can be compressed.

  • Create a profile
    In Unix-like systems (such as Linux), you can use the gzip program to create .zip file or program to create .tar.gz.tar.bz2 tar format or file name. For a detailed description of the man entered on the command line or a human gzip tar. For example,

     
    tar xvf command joomlabackup.tar.gz / path to Joomla
    

    Will create a gzip compressed archive file, Joomla backup.tar.gz named, contain all the files of your Joomla! installation. Important tips! You need to make sure you are not running the tar command or you will create an infinite loop files you want to backup folder.

  • Extract the archive
    Copy the archive file to the target system, you now need to unpack. Use the equivalent command that you used to create the archive. For example, extract the archive created in the example above, enter

     
    CD / path pair Joomla
    Tar xvfz of Joomla backup.tar.gz
    

    If a user or group ID is not between the source and target systems are the same, then you need to change what you just unzip the file ownership. For example, on an Apache system, you may need to enter the command

     
    CD / path pair Joomla
    CHOWN-R WWW-group.www users *
    

Copy the contents of the local MySQL database to host MySQL database

In the Joomla! All content (articles, menus, users, etc.) the site is stored in a MySQL database. You need to copy the information to the host database. This is on the local system by creating an export file and then import this file to your host MySQL database is completed, as follows:

  1. Navigate to its Web site with the browser open phpMyAdmin on the local system. On your local system, this URL is usually “localhost /// phpMyAdmin’s.” Note: If your database password, you will be prompted.
  2. It will appear as shown below on the phpMyAdmin screen. Select Export link.

130

  1. Select the database you want to export in the list in the upper. In the following example, the database “joomla15” is selected. Keep all the default options, which include “SQL” as the export type.

131

  1. Check the “Save as File” box at the bottom of the screen, and enter a name for the export file, as shown below. .

132

  1. Press the lower right corner of the “Start” button. Open / Save / Cancel dialog box is displayed. Press Save and select a folder to save the file, the export is complete, the file will be saved in the selected location.
  2. Open phpMyAdmin on the host server.
  3. Select the Import tab
  4. “File” and click under the Browse button and select the database file from your computer
  5. Click to enter into the database

At this point, you have installed the database.

If you want to create a copy of the database, you can also use the MySQL command line. Typically you run mysqldump to create a copy of the database:

$ mysqldump -u user -p db-name > db-name.out

Use FTP / SSH remote MySQL server replication DBname.out file:

$ scp db-name.out user@remote.box.com:/backup

In the remote server (login via ssh) to restore the database:

$ mysql -u user -p db-name < db-name.out

Configure site. Edit the configuration.php file:
Manually edit “in configuration.php”, tells the Joomla! Your site. configuration.php This file contains specific settings for your system. When you install Joomla to create the file for you! In your local host. In the configuration.php file, you usually need to change the settings shown below. This example is from the local host Windows XP system.

var $log_path = 'C:\\xampp\\htdocs\\joomla15\\logs';
var $tmp_path = 'C:\\xampp\\htdocs\\joomla15\\tmp';
var $live_site = '';
var $host = 'localhost';
var $user = 'root';
var $db = 'your_local_db_name';
var $password = 'your_local_db_password';

Now, you are in a remote host system, configuration.php file, you usually need to change the settings as follows

var $log_path = '/var/www/vhost/domain.com/home/html/logs';
var $tmp_path = '/var/www/vhost/domain.com/home/html/tmp';
var $live_site = '';
var $host = 'name your remote host';
var $user = 'your_user_db_name';
var $db = 'your_db_name';
var $password = 'your_db_password';

If you upload Joomla! File to a subdirectory, remember that you are using a subdirectory and set the need will be to

var $log_path = '/var/www/vhost/domain.com/subdirectory/html/logs';
var $tmp_path = '/var/www/vhost/domain.com/subdirectory/html/tmp';
var $live_site = '';
var $host = 'name your remote host';
var $user = 'your_user_db_name';
var $db = 'your_db_name';
var $password = 'your_db_password';

At this point, your Joomla! Website host should operate the same information as your local host site. If you install one of its subdirectories, navigate to the subdirectory see or manage the site.

http://www.domain.com/subdirectory (for navigatation website)

http://www.domain.com/subdirectory/administrator (login to your user name and password, you have to install Joomla on the local host management area)

If you see the site it is installed under the root directory

http://www.domain.com/ (for navigatation website)

http://www.domain.com/administrator (Log on to the management area)