This tutorial will show you how to move your Drupal site from one server to another. This example uses two live servers, however the same principles also apply for moving to or from a local server.

Your Drupal Site

tutuploadsmedia_1284064777892.png

I'm going to move a straight-forward Drupal install to a new location. Each Drupal site has two halves - the files and the database. We're going to move one and then the other. Finally we'll make sure they can talk to each other.

Download the Files to Your Desktop

tutuploadsmedia_1284064850534.png

Step 1 is to download all of your Drupal site's files to your desktop.

Upload the Files to Your New Server

tutuploadsmedia_1284065113738.png

Step 2 is to upload them all your new server.

Export Your Old Database

tutuploadsmedia_1284065247021.png

For accesing the Drupal database I'm using phpMyAdmin which is commonly used by hosting companies and localhost setps. Find your site's database and click on "Export".

tutuploadsmedia_1284065288199.png

You'll need to export your database as SQL. I've chosen to also compress it using Gzip so that the process is a little quicker. Finally click Go.

Import to the New Database

tutuploadsmedia_1284065461180.png

I'm also using phpMyAdmin at the new site. Click "Import".

tutuploadsmedia_1284065493032.png

Choose the file that you just exported and click "Go" to import it into the new database.

tutuploadsmedia_1284065582137.png

Check to make sure that all the tables have imported sucessfully.

Change Settings.php

tutuploadsmedia_1284066038140.png

Finally we need to make sure that our files and database can talk to each other.

Login to your site's files and go to /sites/default/ and open settings.php. There are two things you'll need to change.

On line 92, chang the $db_url line to reflect the new database name, username and password.

tutuploadsmedia_1284066088958.png

On line 125, change $base_url to reflect the location of your new site.

That's it. Visit your Drupal site in it's new location and it should be live

Login to post comments

advertise with us

Boost your traffic and expand your pool of potential customers

8000 active members

Ready to join Now?

CMS Portal - The free marketplace for submitting Joomla, Drupal, Wordpress, Magento, phpBB, Prestashop, vBulletin, Opencart Templates and more.

FOLLOW US

Email Newsletters

Make sure you don't miss interesting happenings by joining our newsletter program.
konya escort eskisehir escort canakkale escort samsun escort balikesir escort aydin escort hatay escort kahramanmaras escort giresun escort tokat escort
Joomla Templates Free Joomla Templates Virtuemart Templates K2 Templates JoomShopping Templates HikaShop Templates SobiPro Templates OpenCart Themes
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes
bettilt
tempobet