Home Web Development How to move a Joomla website from localhost to shared host server
How to move a Joomla website from localhost to shared host server PDF Print E-mail


1. Login to you hosting service provider and goto to cPanel. Create a new database to hold your Joomla database. In your cPanel this may be from the phpMyAdmin or from different link such as MySQL Databases. In cPanel goto MySQL Databases and do the following:


  • Create New Database: type in the name of the database
  • Click Create Database
  • Create New user
  • Add user to Username: rraznatra_
  • Add Password to user
  • Click Create User
  • Adder User to Database
  • Select User: from the dropdown list
  • Select Database: from the dropdown list. This adds the username to the selected database


2. Now goto your local pc and export the joomla database


  • Access your phpMyAdmin by typing in you browser localhost (if you have XAMPP installed you will get localhost/xampp)
  • From the left navigation click on phpMyAdmin
  • In phpMyAdmin click on the Export tab
  • Select the database from Export select box
  • Select SQL to export the database in SQL. SQL file will contain all of the necessary SQL commands for creating your database tables and filling them with your data. Be sure you export the entire database.
  • Leave everything else as default
  • Enter File name template
  • Click Go


3. The database is exported as a -----.sql file with all SQL commands. Open the SQL file in a text editor if is it contains Create DATABASE '-----' delete all these lines upto Table structure. Save this SQL text file


4. Goto the folder on your local system which contains all of your Joomla files. Goto XAMPP folder usually contained within you root drive (e.g. C:\xampp)


5. Navigate to xampp\htdocs\joomla. In the first level folder, the joomla folder, find configuration.php file.


6. Open this file with a text editor and make the following changes. At the very least, you will probably need to change the below parameters:


  • var $ftp_host = 'your hosting account'   //  optional
  • var $ftp_user = 'raznatra- ftp username' //  optional
  • var $ftp_pass = 'ftp passwrod'           //  optional
  • var $ftp_root = '/public_html/-----'
  • var $host = 'localhost'; // Leave it to localhost if you are unsure
  • var $user = 'your-database-user'; // This should be changed to yours
  • var $password = 'yourpass'; // Change it to the password for the database user
  • var $db = 'your-database-name'; // Change it to the name of your database on you webhost
  • var $log_path = '/var/www/vhost/---your hosting domain---/---site folder---/logs'; // This path varies for your webroot,but usually starts with (e.g. '/var/www/vhost/';)
  • var $tmp_path = /home/--your hosting domain---/public_html/--site folder--/tmp //This is very important when intalling new components. The unzipped package first gets put in the tmp folder temporarily then move to the correct joomla location. (e.g. /home/rraznatra/public_html/jjspot/tmp)



7. Save the configuration.php file. (Or save as configuration-web.php then after transfer rename this back to configuration.php.This way the original file is preserved in-case any mistakes are made)


8. Import the database to your host MySQL server. Using phpMyAdmin (fromcPanel) and the -----.sql file you generated ipreviously, import your previous exported database into your new database on the host server.


9. Using a file transfer protocol such as FileZilla FTP transfer all of the Joomla folder onto the shared host server


10. The transfer should now be complete. Open your browser and type in the domain name in the URL or if its a subdomain the URL may look like or