Book Image

Migrating to Drupal 7

By : Trevor James
Book Image

Migrating to Drupal 7

By: Trevor James

Overview of this book

<p>This book will show you how to migrate your content into the Drupal content management system. You&rsquo;ll start by building a content type in Drupal to hold your migrated content. You&rsquo;ll then import your content into Drupal using the Feeds module. In order to be able to easily use them again and again, you will also learn the best methods of maintaining and packaging migration configurations.<br /><br />In "Migrating to Drupal 7" you&rsquo;ll learn how to quickly package your legacy site&rsquo;s data into a format that&rsquo;s easy to import into Drupal. You&rsquo;ll then build a content type to hold migrated data in Drupal. To save time and hassle you will learn how to import content into Drupal using the Feeds module. You&rsquo;ll then get a brief introduction to the Migrate module and its powerful features.<br /><br />With this guide you&rsquo;ll also learn how to upgrade your Drupal 6 website to Drupal 7 in short, simple steps. You&rsquo;ll also learn how to package your configuration code in Drupal using the powerful Features module.<br /><br />In "Migrating to Drupal 7" you&rsquo;ll start by collecting your current site&rsquo;s content and packaging it up into a CSV file so you can easily import it into Drupal. You&rsquo;ll then build a content type to hold your migrated data and content. <br /><br />Mastering migrations using the Feeds module will be the next invaluable tutorial before you get a closer look at the Migrate module&rsquo;s powerful features. You&rsquo;ll then upgrade your Drupal 6 site to Drupal 7 and use helper modules to help run the upgrade faster and with less hassle. This book will then take you through the process of migrating CCK-based Drupal 6 fields to Drupal 7 using the Content Migrate module. <br /><br />Using the Features module you will then package up our Feeds importer and content types into code to help you to build an easily maintainable and flexible Drupal website with.</p>
Table of Contents (16 chapters)
Migrating to Drupal 7
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
5
Maintaining a Migration Path
8
Migrating Content from Earlier Drupal Versions
Index

Preparing for migration


This chapter assumes that you have installed Drupal using the Standard install on either your localhost development environment or on a hosted web server. We're going to start from a core Drupal install using Drupal version 7.15, the latest Drupal version at the time of this book's writing. Let's get started.

First you should load your Drupal site's status report, and confirm that your core Drupal environment is working correctly and that you have the correct PHP configuration for your migration. In our local development version of Drupal 7.15, we can confirm that the site is running on a PHP 5.3.x application environment (in this case powered by MAMP) and has a PHP memory limit set relatively high at 512 MB.

This memory limit is reasonable for a development environment, though in a production server, you'll most likely want to run a memory limit from 96M to 128M. You can tweak the memory limit using a few methods.

In an application such as MAMP Pro, you can simply tweak your php.ini file by editing the loaded PHP template via the MAMP Pro interface. You can also add the following line of code to your Drupal site's setting.php file and then flush your Drupal cache:

ini_set('memory_limit', '96M');

You should also be comfortable with accessing your MySQL database for your Drupal site by using phpMyAdmin or another type of MySQL tool. MAMP or MAMP Pro also provide an easy access to the phpMyAdmin interface by using the MAMP WebStart button in the MAMP interface. We'll be looking at tables in the Drupal site database, once we start running our imports. It's recommended that we run our migration process on a staging or development server before running the same migration on a production site.