Hosting Drupal

System Requirements

Database

  • MariaDB 10.3.7+
  • MySQL/Percona 5.7.8+

Set Database Transaction Isolation Level To Read Committed

PHP

  • 8.0+ (Drupal 9.x)
  • 8.2 (Drupal 10.x)

Multi-Site Setup

Drupal can support multiple sites with a single codebase. This makes it easy to manage updates all at once. Be careful to only push updates that will not break the site.

A single Drupal site uses the web/sites/default directory. Multi-site setups have an additional directory per site.

Sites.php

/web/sites/sites.php

This file tells Drupal how to map domain names to the directory in /web/sites.

Settings.php

The main Drupal configuration file.

Trusted Host Pattern

Prevent your site from being spoofed from another URL.

Settings.local.php

Environment specific config and development options. See example.settings.local.php.

You can put sensitive environment config like the database credentials and hash salt in here and ignore it in git.

Development.services.yml

Located in /web/sites.

Development configuration.

Tags
Hosting