Migration from Drupal 6/Drupal 7 to Drupal 8 - Basic Setup

Image
migrationd8

In the past year, we have been actively contributing to the Drupal 8 core. We have also accomplished the migration of several enterprise class websites from Drupal 6 to Drupal 8.

We took away huge learnings from the process and challenges. In this blog, we would like to share a starter that will be helpful to anyone working on such migrations. We will cover the basic setup for a Drupal 6 to Drupal 8 migration:

Step 1

Install Drupal 8 with composer:

  1. Drupal 8 architecture has completely changed. Composer needs PHP 5.3.2+ to run (but you should run PHP 7 if possible.
  2. Firstly install composer on your server or local machine. To install composer please follow steps given below.
    https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx
  3. Once composer is installed you need to create a project:

$ composer create-project drupal-composer/drupal-project:8.x-dev drupal-composer-build --stability dev --no-interaction

The following blogs are available on drupal.org for drupal 8 installation with composer.

Also great documentation given in read.txt file:
https://github.com/drupal-composer/drupal-project/blob/8.x/README.md

Step 2

Step up of Drupal 6:

We don't need to do the step-up of drupal 6 . We may require it to do when we will migrate files. All what we need right now is drupal 6 DB installed on localhost or your mySQL.

Step 3

Install the below listed modules in your Drupal 8 site

Core:

  • Migrate
  • Migrate Drupal

Contributed:

Step 4

Verify the migration :

Open your CLI . Go to your Drupal 8 directory and do

drush ms

This will give the Migration Status - in the screenshot below

drush-ms

You will now have created the basic Drupal 8 setup that is ready for the next step.

Go to admin/structure/migrate

You will see the default migration group listed.

This completes the basic Drupal 8 migration setup.

Back

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.