Drupal 8 is the latest version of the Drupal CMS. It is also a complete rewrite of the codebase, going fully OOP and incorporating Symfony into core.

I have a few Drupal sites that I manage and a background in Drupal 7 so I went through the process of migrating a site from Drupal 7 site to Drupal 8 and this was my process:


  • Backup db
  • Backup files


  • Disable modules that can be re-added after


  • Drush up to update all of the modules to the latest versions

Drupal 8

  • Download / clone drupal 8 and extract to folder
  • Create new db (phpMyAdmin etc)
  • Create a vhost and point it to the folder (in MAMP tce)
  • Navigate to the vhost in the browser and the installation script will run Standard installation
  • added xdebug.max_nesting_level = 100 to php.ini for the php version I’m using in MAMP PRO Navigate File -> Edit Template -> PHP -> PHP 5.xx -> php.ini
  • Changed cache module to OPcache in MAMP Pro
  • Installation completed successfully.

Drush after migrating

  • Upgrade drush
  • Came across this problem https://drupal.stackexchange.com/questions/201060/does-drush-need-to-be-installed-as-root – fixed
  • Came across this issue – https://modulesunraveled.com/blog/drush-not-working-mamp-heres-how-fix-it fixed as per the instructions
  • Installed https://www.drupal.org/project/migrate_upgrade via drush

drush migrate-upgrade --legacy-db-key=default --legacy-root=/Applications/MAMP/htdocs/northamptonpartnershiphomes


drush migrate-upgrade —legacy-db --legacy-root=/Applications/MAMP/htdocs/northamptonpartnershiphomes

  • problems with .sock – https://drupal.stackexchange.com/questions/99446/ive-got-pdoexception-sqlstatehy000-2002-no-such-file-or-directory-when-u
  • https://drupal.stackexchange.com/questions/185364/upgrading-from-drupal-7-to-8-with-drupal-upgrade-a-bug
  • https://stackoverflow.com/questions/4145667/how-to-override-the-path-of-php-to-use-the-mamp-path/10653443#10653443 – Getting system to use MAMP version of PHP (could explain issue with Drush, when installed globally uses default version of PHP outside of MAMP.)

cd /Users/******
nano .bash_profile

  • Add the following lines:
    export MAMP_PHP=/Applications/MAMP/bin/php/php7.0.0/bin



  • https://www.drupal.org/project/twigify – converts drupal 7 theme to twig
  • https://www.drupal.org/docs/8/theming-drupal-8/adding-stylesheets-css-and-javascript-js-to-a-drupal-8-theme


  • https://knpuniversity.com/screencast/drupal8-under-the-hood/debugging


I recommend running through this process yourself to get a feel of the changes. However, although I did encounter a few bumps in the road the migration process was very smooth.


  • https://www.drupal.org/project/drupal/releases/8.2.4
  • https://www.drupal.org/docs/8/upgrade/upgrade-using-drush – drush migrate module docs
  • https://www.drupal.org/project/migrate_upgrade – drush migrate module
  • https://www.youtube.com/watch?v=XOV8VNTAvek – install drupal 8
  • https://www.youtube.com/watch?v=sEOvYaBFj64 – introduction to drupal 8
  • http://docs.drush.org/en/master/install/ – drush docs
  • https://www.zodiacmedia.co.uk/blog/migrating-from-drupal7-to-drupal8
  • https://www.drupal.org/project/drupalmoduleupgrader – attempts to upgrade module from drupal 7 to drupal 8 – also works on themes