Drupal 8 logo with fireworks and the words "it's here"
Installing Drupal 8
The first release candidate of the latest Drupal 8 is now ready for use. The huge redesign and changes made to the platform marks a huge step forward, making Drupal more efficient, accessible and customizable than ever.

There are some major changes in the latest version of Drupal, so I’ve prepared this blog article to help you in your installation.  This is not a Guide on how to install Drupal; simply tips and tricks to help you get started.

New system requirements

The system requirements for Drupal have changed in the latest version.  We’ve seen big improvements in support for PHP, as well as the newer version of MySQL, MariaDB, and PostgreSQL. Drupal 8 core requires

  • PHP 5.5.9 or higher
  • Memory allocation of 64MB or higher
  • MySQL 5.5.3/MariaDB 5.5.20/Percona Server 5.5.8 or higher with PDO and an InnoDB-compatible primary storage engine, PostgreSQL 9.1.2 or higher with PDO, or SQLite 3.6.8 or higher

New system.yml file

Drupal 8 comes with an additional configuration file sites/default/default.services.yml. 

There is little documentation on this file, but it stores configuration settings for services such as garbage collection, twig, and renderer.

In Drupal 8 you need to copy and rename this file to services.yml and change its permissions so it’s writable from the web server.  We’ll change the permissions to become more secure after the installation.

New Installation Steps

The Drupal 8 installation steps have changed slightly. The new order of the steps are:

  1. Choose Language
  2. Choose Profile
  3. Verify Requirements
  4. Setup Database
  5. Install Site
  6. Configure Site

When you've completed the installation, you'll need to go back and change the permissions to protect the services.yml file 

New Language Support

In Drupal 8, you can choose the language of your Drupal website during the installation process. Be sure the directory sites/default is writable, so that during installation the translation files can be copied to the translations directory at sites/default/files/translations

Setting Trusted Hosts

Many Drupal sites will respond to a page request using an arbitrary host header sent to the correct IP address. This can lead to cache poisoning, bogus site emails, bogus password recovery links, and other problems with security implications. Drupal 8 ships with a simple facility to configure expected host patterns in settings.php and warns you in the site status report if it's not configured. 

Setting Configuration Directory

Drupal 8 now comes with a powerful configuration management system, allowing all system configurations to be exported as YAML files.  By default, these files are stored within the sites/default/files directory. However, we do not typically include this directory into version control, since it is often filled with dynamically generated files. 

Therefore, you will need to alter the settings.php to save the configuration files in a different directory, that we can include version control.   Here is the code to change your configuration directory:

$config_directories = array(CONFIG_STAGING_DIRECTORY => 'sites/default/config',);

In addition to this, you will need to create the directory and ensure that it is writable by the web server.

Navy blue plain colour background

As Founder and CEO, Chris lives and breathes the paradigm that OPIN was founded on: Open Innovation. This mantra has helped our founder grow OPIN from its roots to Canada's fastest-growing digital agency. Chris is considered a thought leader in the entrepreneurship, open-source and government communities.