Joomla! 3.x Tutorials
How to Move/Copy a Joomla! 3.x Website

How to Move/Copy a Joomla! 3.x Website

Create the new folder (if it does not exist)

The first step in moving or copying your website to a new location is to create the new directory. You can do that via File manager or via your favorite FTP client. For more information on how to use FTP, you can check our FTP Tutorial.

Create a copy of the files

Once the destination folder is created, copy the website’s files in it. Again you can do that via File manager or over FTP client. You need to copy all files from the Joomla! 3.x website’s document root to the destination folder. Make sure that you do not forget the .htaccess file which is hidden and might not be visible.

Create a copy of the database

Now you need to export your database. If you are not certain what is the database name, you may look it up in the configuration.php file. To export it, you may follow the instructions here. After you have your data exported, create a new database and import the content in it.

Reconfigure Joomla! 3.x accordingly

The final step is to adjust the core settings which are defined in your main Joomla! 3.x configuration.php file. Go to your SiteGround File Manager and open the configuration.php file for editing

Below are the main variables you need to adjust:

public $host = 'localhost';
public $user = 'mysqlusername';
public $password ='your_mysqlusername_password';
public $db = 'mysqldatabase';
public $log_path = '/home/customer/www/yourdomainname.com/public_html/newfolderlog';
public $tmp_path = '/home/customer/www/yourdomainname.com/public_html/newfoldertmp';

You should replace mysqluser with the MySQL username you have created during the database setup process mentioned above. This also applies for the password of this username and for the database name. Replace yourdomainname.com with your actual domain name. If you have completed the steps correctly, you should be able to see the copy of your Joomla! 3.x website now.

Share This Article