Connect with us

Hi, what are you looking for?

Tech

Transferring Web Pages from Local Host to Web Server

This post should serve as a guide on how to transfer Joomla files and documents from a local host such as the WAMP, LAMP or XAMPP Server to a Web Server via FTP. The popularity of Joomla as a content management system, for building simple to complex Websites, is growing on a daily basis. While some Web administrators prefer to build a Website directly on their Web Server, there are others who like to do otherwise. While both methods have their advantages and disadvantages, this article will focus on the latter category. There are three main components that are required in order to make a clean file transfer from a local  to a Web Server:  an FTP Client such as FileZilla, a cross-platform Web Server package for example, WAMP or XAMPP and a Web Server. Once these are in place, you can proceed with the following steps:

STEP 1

Select all the files in your Local Server and upload unto the public_html (or a sub-directory in public_html) folder on your Web Server. This usually takes a long time, so be prepared to wait.

STEP 2

Create a full dump of the SQL database by using a database management tool such as phpMyAdmin on your cpanel. If using phpMyAdmin, log in and choose  your database from the left menu and click on the Export tab. Select all the tables, check the Add DROP TABLE box and Save as file then click on Go, as shown below. Do not change any other options.

transfer joomla from local server to web server

STEP 3

Now to import the database dump to your Web Server, create a new database (with any name of your choice) with a new username and password from your cPanel and log into your Web Server’s phpMyAdmin interface. Select the new database on the left and click on the Import tab. Browse the location of the SQL file then click on Go to import.

STEP 4

Now adjust the core settings identified in the Joomla configuration.php file in the File Manager. It is very important that you get the database settings right otherwise there will be no connectivity between the Joomla files and the database. Below is an example of the variables that need to be changed –

/* Database Settings */
var $host =
‘getCorrectHostnamefromProvider’;
var $user =
‘mySQLdatabaseUsername;
var $password =
‘mySQLdatabasePassword’;
var $db =
‘mySQLdatabaseName’;
var $dbprefix =
‘databasePrefix_’;
var $log_path =
‘enterCorrectLogPath’;
var $tmp_path =
‘enterCorrectTmpPath’;

The Website should now work correctly if all the information above is entered correctly and your domain name points to the right DNS server of your Web hosting account.

Written By

Thanks for reading this article. If you're new here, why don't you subscribe for regular updates via RSS feed or via email. You can also subscribe by following @techsling on Twitter or becoming our fan on Facebook. Thanks for visiting!

22 Comments

22 Comments

  1. Pingback: Tweets that mention Transferring Web Pages from Local Host to Web Server

  2. NJ SEO Company

    June 2, 2010 at 2:33 pm

    Thanks for the tutorial. Great info!

  3. online pharmacy technician

    June 2, 2010 at 7:58 pm

    This is actually perfect instructions. I’ve been trying to find out ways to transfer my website from localhost to my Bluehost web server.

    • Admin

      June 4, 2010 at 3:18 pm

      Glad you found it useful.

  4. Silver

    June 4, 2010 at 5:29 pm

    Nice tut i’ve been using classic ftp for years….
    .-= Silver ´s last blog ..The 1989 Silver Proof Maple Leaf =-.

  5. Domain name registration

    June 4, 2010 at 6:59 pm

    Thanks for sharing this tip, it is very useful.

  6. Pingback: Resellerspanel Launches Version 2.0 of Its Control Panel and a New Web Hosting Plan

  7. Replacement laptop batteries

    August 19, 2010 at 3:40 pm

    Thanks for your advice. It’s really good for me.

  8. Darwin Web Design

    September 9, 2010 at 8:02 pm

    Very nice step by step tutorial. It is easy to follow and detailed. Thanks for sharing this tutorial.

  9. Joomla SEO Taylor

    November 12, 2010 at 3:15 pm

    This is a really insightful tutorial. Very useful indeed, straight-forward and not complicated at all. I’m sure people who are new to Joomla would find this post helpful. Thanks for sharing this!

  10. Fred

    December 3, 2010 at 8:59 pm

    great post

    ps: i also use Filezilla – love it!

  11. biz guy

    January 30, 2011 at 5:59 am

    Bravo. Bumping up phpMyAdmin on my list of tools to master.

  12. Aden Clark

    March 13, 2011 at 12:02 am

    I always use filezilla for transferring files, although this post was still very useful for me. Thanks.

  13. Danika

    April 17, 2011 at 9:21 am

    Some great posts on your blog btw.

    My question is firstly whether you can do this with a WordPress site as well? Does it have to be a Joomla site.

    Secondly, where do I find my “local host”?

    thanks!

  14. Chase Adams

    April 19, 2011 at 5:14 pm

    Is there some way that you can setup the scripts so that they are smart enough to change most of the settings for you? Or are there any WordPress plugins that would help you to do the move without having to be a tech head?

  15. Classifieds

    May 4, 2011 at 9:55 pm

    thanks for the info. a step by step guide like this is handy to have bookmarked.

  16. Freddy from Web Design Georgia

    May 6, 2011 at 5:05 am

    Thank you for the help wish I new this years ago.

  17. kelvin

    July 14, 2011 at 10:15 pm

    Thanks for sharing this with us. Before i use to pay people to transfer my files for me. Now i pretty much do everything on my own

  18. Darin Cunningham

    August 15, 2011 at 2:56 am

    I tried to launch my site using a free web hosting and domain name for testing purposes. I can’t seem to put it online. Thanks for this tutorial, the problem was the configuration.php file. Now, i have my site up and running.

  19. Paul

    March 1, 2012 at 1:25 am

    This is definitely a great guide for me as I recently decided to migrate my site to a dedicated server and the host was not willing to do the migration for me without charging me a hefty price. Thanks!

  20. Kummert

    March 6, 2012 at 8:58 pm

    Hello! Thank you for this very good guide. I will check it out. Bye, Jan

  21. Nigeriaedu

    June 6, 2012 at 3:57 pm

    You just made my day. After surfing the internet as if no other thing to do. I’m sorry, just have to bookmark this page. Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You May Also Like

Web

In this digital era, every business is judged based on its online presence and performance. Therefore, the business website automatically becomes essential for every...

Web

What to know while designing a website? Perhaps it is the user interface or formats. No, it is something else. What exactly is this...

Tech

The Structured Query Language is commonly used to create, maintain, update, and operate relational databases. It is popular for many reasons, notably its ease...

Web

Web development is widespread and sophisticated in equal measure, which means that when one sets out to start work on such a project, they...