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

In the past 1 year, we have been actively contributing to the Drupal 8 core. We 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:

Drupal 8 architecture has completely changed. Composer needs PHP 5.3.2+ to run (but you should run PHP 7 if possible.

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

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

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

https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies

https://www.drupal.org/docs/develop/using-composer/using-composer-with-drupal

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

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