Drupal 8 Installation With MAMP (Drupal 8 Tutorial #1) (Article + Video)

Submitted by TheMain on Fri, 10/09/2015 - 09:00

First release candidate for Drupal 8 is out. Here is how to install it with Mamp.

Download the core

My document root in MAMP is in /Users/samuli/Sites and the actual site goes here: /Users/samuli/Sites/tutorials/d8/mysite

So now you have this kind of file structure:

Create database

  • Go to the phpMyadmin page.

For me it's found here: http://localhost/phpmyadmin. You can click the Open WebStart page link in MAMP control panel to go to the default start page and find your phpMyadmin link there.

  • Click Databases tab:

  • Write database name, select utf8_general_ci for the collation and click

Go through the installation

  • Visit the site url to start the installation.

For me the url is here: http://localhost/tutorials/d8/mysite/

  • Choose language:

  • Select installation profile:

You can create your own profiles to modify the installation process (like have some modules to be enabled / disabled by default).  Bare installation profiles are stored in the profiles directory before you start the installation. Bigger modifications that include core and all other necessary files are called distributions (like Commerce Kickstart or Open Atrium).

  • Depending on your system/setup, you might or might not see some notices/errors in the Requirements review:

Drupal 8 requires PHP 5.5.9 or higher

PHP versions higher than 5.6.5 or 5.5.21 provide built-in SQL injection protection for MySQL, so it might be a good idea to implement that in your production envinronment.

It is also recommended to install OPcache to improve PHP performance. There is an OPcache setting in the MAMP interface.

Check out other Drupal 8 system requirements here: https://www.drupal.org/requirements

  • Type in the database name and credentials (for MAMP the default username/password is root). If you didn't create the database before, the installer will try to create it at this point.

  • Configure site:

'Check for updates automatically' will enable the Update Manager module that checks updates and enables you to install/update modules with web interface. You might want to disable the email notifications (you don't want to get update emails from all your sites), and instead subscribe to the security announcements here: https://www.drupal.org/security.

Congratulations, you just installed Drupal 8!

Posted by Samuli Natri on 09 October 2015