1. Download the core
2. Create database
3. Go through the installation
1) Download the core
- Download the recommended release for Drupal 8 from here:
- Extract that packet under your document root and rename it to something like mysite.
My document root in MAMP is in /Users/samuli/Sites and the actual site goes here:
So now you have this kind of file structure:
2) Create database
Note: If you don't create the database manually, the installer will attempt to create the database for you. In this example we create it manually.
- 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 Create:
3) 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!