Transferring a Drupal Gardens Site
If you are using assistive technology and are unable to read any part of the HostMonster website, or otherwise have difficulties using the HostMonster website, please call 866-573-HOST and our customer service team will assist you.
Skip to main content

HostMonster Web Hosting Help

Transferring a Drupal Gardens Site

Overview

Attention: This service is no longer offered by Drupal. Please see Additional Support for Drupal.

This article explains how to transfer your Drupal website from Drupal Gardens to HostMonster.

Tasks Involved



Export Your Site From Drupal Gardens

The first step to move your site is to get a copy of all your site database and files. You can obtain these by exporting your site from Drupal Gardens.

  1. Log in to your account at Drupal Gardens. Drupal Gardens.
    The Drupal Gardens login page.
    The Drupal Gardens login page.
  2. Go to My Sites..
    The Drupal Gardens My Sites page.
    The Drupal Gardens My Sites page.
  3. Click on the Actions menu next to the site you want to export.
  4. Select Export site.
    The export link.
    The export link.
  5. Take note of the warning about your login credentials changing, this will be important later.
  6. Choose "Want to host it on a 3rd party hosting company" as the reason for exporting.
  7. Enter an explanation for exporting.
  8. Click Export
    Note: The Export can take some time depending on the size of your site.
    The export page.
    The export page.
  9. When prompted, save the export file to your computer.

Do not delete any of the files you have exported. It's a good idea to keep them as a backup in case there is an error during the transfer of your site to HostMonster.

Extract and Upload Files

The file exported from Drupal Gardens will be a .tar.gz archive file. You will need to extract the file and upload some of its contents to your HostMonster account. This process will vary depending on your computer.

If your computer doesn't have the built-in ability to extract a .tar.gz file you can try using 7-zip.

For security reasons, there are a few files in the export that should never be uploaded to your HostMonster account.

  • credentials-*.txt This file contains the username and password for your site in plain text. Uploading it may make your password visible to anyone.
    Note: Your credentials-*.txt will be named according to your Drupal Gardens' username and name of the site.
  • *.sql This file contains the database that holds all your content, configuration settings, and user information.
    Note: Your *.sql file will be named according to your Drupal Gardens' site name. It will be imported into a database in another step but should not be uploaded with the rest of the website.
  1. Go to the location on your computer where you saved the export file, and extract the file.
    Once extracted you will have a folder called docroot that contains all the files needed to move your site.
    The docroot folder.
    The docroot folder.
  2. Open your preffered FTP program and connect to your HostMonster account. Note: For help with FTP please see FTP Setup Using Filezilla.
  3. Navigate to the location you will host yout site.
    Note: This can be your public_html folder or a directory inside it.
  4. Upload all files inside the docroot folder except the *.sql and the credentials-*.txt file. Note: Your credentials-*.txt and *.sql file will be named according to your Drupal Gardens' username and name of the site.
    Uploading the files
    Uploading the files

Setup The Database

Drupal uses a database to keep track of all the content, settings, and user information. In this section, we will recreate that database.

Creating a Database

  1. Inside your HostMonster account go to Hosting.
  2. Next, select Databases and scroll to the "Create A New Database" form.
  3. Scroll to the "Create A New Database" form.
  4. Enter the name of the database you would like your Drupal site to use.
  5. Click "Create Database"

Create a User

  1. On the Database page, scroll to the "Add a New User" form.
  2. Enter a username for your new database.
    Note: All usernames are prefixed with your cPanel username and will look something like examplec_nameyouchose.
  3. Create a password for the username.
  4. Click "Create a User"

Add the User to the Database

  1. On the database page, scroll to the "Add a User to a Database" form.
  2. Select the new user from the User dropdown.
  3. Select the new database from the Database dropdown.
  4. Click "Add"
  5. On the next page, select "ALL PRIVILEGES" at the top of the privilege table.
  6. Click "Make Changes"

The next step is to import all the information into the database.

Import Data

Now that you've created a new database, you need to copy the information from your old database into the new one.

  1. Go to the Hosting section of your HostMonster account.
  2. Scroll down to the "Database Tools."
  3. Click on the phpMyAdmin icon.
  4. Login to phpMyAdmin with your cpanel username and password.
    Note: If you have changed your MySQL primary password use that password instead.
  5. Select the new database you created from the list on the left side.
  6. Click on the Import tab.
  7. On the import page choose the "Browse your computer" option.
  8. Select the .sql file in the files you exported and extracted from Drupal Gardens earlier.
  9. Once you've selected the file, click Go.

Wait for the import to finish. Once it's done you can move on to Modify The Database Connection Settings.

Modify Database Connection Settings

  1. In your HostMonster account, go to Hosting then click on cPanel.
  2. Scroll down to the files section.
  3. Click on the file manager icon.
  4. Navigate to the directory you uploaded your Drupal files to.
  5. Go to the sites/default/ folder
  6. Right click on the settings.php file and select Code Editor.
    Note: If you get a message about charactor encoding click edit to continue opening the file.
  7. Scroll down to around line number 221 and enter the new database name, username and password.
  8. Click Save, in the top right corner.
  9. Note: If you are using a temporary url like http://74.220.219.65/~example/ for your site instead of the domain name, you will need to make one more change to your settings.php file.

    1. You will need to set the base url value in your settings.php file to use the temporary url. Find the line in the file that says:
      $base_url = 'http://www.example.com'; // NO trailing slash!
    2. If the line starts with a # then remove just that character.
    3. Change the url in the code, to the temporary url you plan to use for the site. Do not include a trailing slash.
      For example if the temporary url of your site is http://74.220.219.65/~example/ then the line would read:
      $base_url = 'http://74.220.219.65/~example'; // NO trailing slash!
    4. Click the save button in the top right corner to save the changes.

Modify .htaccess File

The .htaccess file that was exported with your site will cause a server error to appear. To resolve this, the .htaccess file needs to be modified.

  1. In the file manager, navigate to the directory you uploaded your Drupal files to.
  2. Right click on the .htaccess file and select Code Editor.
  3. Delete the lines of code that say:
    #Follow symbolic links in this directory. Options +FollowSymLinks
    Note:This code is usually on line 13 and 14.
  4. Click the save button in the top right corner.

Note: If you are using a temporary url like http://74.220.219.65/~example/ for your site instead of the domain name, you will need to make two additional changes to the code in your .htaccess file.

  1. Since temporary urls have a directory in the name, like http://74.220.219.65/~example/ we will need to add a rule in the .htaccess file to accommodate the folder. If your temporary url was http://74.220.219.65/~example/ for example then you would add:
    RewriteBase /~example
    to the the .htaccess file. Do not add a forward slash at the end of the rule.
  2. Next you'll need to add a # before the line that reads: Header always set X-Content-Type-Options nosniff so the server will ignore that line of code. This is done so that the server will allow the site to be loaded from a url other than the domain name. If you change the site to use the domain name later on, you will want to remove the # .
  3. Click the save button in the top right corner to save the changes.

That's all for modifying the .htaccess file. You can close your File Manager. Your site will now be functioning on your HostMonster account.

Log In With The New Password

The login credentials used for your site will have changed from what you used at Drupal Gardens. To log in you will need to use the new username and password that was stored in your site's credentials-*.txt file.

Knowledgebase Article 51,826 views bookmark tags: Drupal transfer


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

How to Transfer hosted files from old host to HostMonster.com via ssh. Your old host must have SSH access to perform this move. Using SSH to transfer files to HostMonster
Knowledgebase Article 242,901 views tags: file host site transfer transferring

I need to transfer my website from my old host to HostMonster, but I do not know how to do it without losing files or mail.
Knowledgebase Article 567,365 views tags: transfer upload website

We are offering free website migrations for qualifying WordPress websites within the first 30 days after signup. The offer includes the transfer of one WordPress website and the ability to review the site before it goes live.
Knowledgebase Article 91,876 views tags: detail migrate migration offer site website wordpress wp

Related Help Content

Maintaining your domain registration and hosting services within the same account allows you to manage both services with only one login password, making it easier for you to stay on top of everything related to your website. This article explains the process to transfer your domain to [% provinfo.n
Knowledgebase Article 1,660,410 views tags: domain faq registration transfer transfers

There are multiple reasons why a domain transfer may fail. This article explains several reasons why your transfer may be unsuccessful and what you can do to fix it.
Knowledgebase Article 244,216 views tags: domain transfer

This article explains how to prepare your domain to be transferred from HostMonster to a new registrar. You'll initiate the transfer itself with the gaining registrar, but there are a few things you can do to ensure the process goes smoothly.
Video "How-to" Tutorial 1,022,462 views tags: domain leave registration transfer uk

A list of locations where you can find support for drupal outside of HostMonster
Knowledgebase Article 121,172 views tags: Drupal

How do I upload my web site?
Knowledgebase Article 1,827,600 views tags: ftp site upload uploading web website

You have invested a significant amount of time creating and perfecting your website, and you're ready to publish it for the world to see! Are you really though? Use this checklist to ensure your site is ready for publication.
Knowledgebase Article 82,476 views tags: checklist guide list practice publication publish site website

If you need to transfer or restore a cPanel account for your VPS or Dedicated server, there is a tool within the WHM panel to perform these tasks. This article is about transferring or restoring from another server or restoring after a re-image.
Knowledgebase Article 88,042 views tags: backup cpanel dedicated hosting restore server transfer vps

The website is taking a long time to load. It just seems slower today than normal.
Knowledgebase Article 533,073 views tags: site slow web website

This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here