Drupal Multisite: How to Run Several Sites From One Installation (Drupal 10 and 11)

Last updated on 27 Nov 2026
Drupal multisite: several websites managed from a single installation and codebase
A group runs twelve websites: one per subsidiary, all built on the same template. Every time Drupal ships a security fix, it has to be deployed twelve times, tested twelve times, with the hope that nothing was missed. That is exactly the problem Drupal multisite was designed to solve.

A Drupal multisite runs several independent websites from a single codebase. This guide explains how it works, when it makes sense, how to set it up on Drupal 10 and 11 (sites.php, settings.php, Drush), and the alternatives to consider before you start: the Domain module, separate sites and a site factory.

At a glance

  • A Drupal multisite shares one codebase across several sites, each keeping its own database, files and domain.
  • It simplifies updates, but a mistake in the shared code hits every site at once.
  • Setup relies on one folder per site under “sites” and on the sites.php file.
  • The Domain module is an alternative when sites must share content and users in a single database.
  • Drupal 10 reaches end of life on December 9, 2026: a multisite has to move to Drupal 11 in one go.

What is a Drupal multisite?

A Drupal multisite shares a single codebase (Drupal core, modules and themes) across several websites. Each site keeps:

  • its own database, so its own content, users and settings;
  • its own files folder (images, documents);
  • its own domain name;
  • its own configuration, with the option of enabling different modules.

The mechanism is simple: Drupal looks at the requested address and loads the matching configuration folder in the sites/ directory. A point that often confuses people: the web server document root is the same for every site. All domains call the same index.php file.

This feature has been part of Drupal core for a long time and is still available in Drupal 10 and 11, with no extra module.

When should you choose a Drupal multisite?

A Drupal multisite makes sense when your sites share the same technical foundation:

  • a group and its subsidiaries, with sites built on the same model;
  • country or brand sites that use the same features;
  • a local authority or university managing dozens of small sites (departments, labs, events);
  • development environments you can spin up quickly to test a change.

Drupal’s documentation is clear about when to avoid it: if features differ from site to site, if the clients are different, or if you manage several distributions, do not use multisite. Our advice: ask yourself “can an update to the shared code go live on every site the same day?” If the answer is no, multisite will make your life harder.

We maintain multi-site Drupal platforms

Pros and cons of a Drupal multisite

Pros

  • One codebase to update: a module security fix is applied everywhere at once.
  • Lower costs: fewer servers to manage and a shared PHP opcode cache that saves memory.
  • Features built once and reused by every site.
  • New sites launched fast, on a proven template.

Cons

  • Shared risk: a failed update, or a security flaw, affects every site at once.
  • Locked versions: every site must stay compatible with the same module and core versions.
  • Shared resources: a traffic spike on one site can slow the others.
  • A costly exit: moving a site out later takes a real migration.

Drupal multisite vs the alternatives

Multisite is only one way to run several sites with Drupal. The table compares the four most common approaches.

Approach Code Database Best for
Drupal multisite Shared One per site Similar sites, grouped updates
Domain module Shared One, shared Content and users shared across several domains
Site factory One deployment per site, common template One per site Dozens of sites created at scale
Separate sites One per site One per site Sites with different needs and schedules
Drupal multisite, Domain module, site factory or separate sites: which approach to choose?

The Domain module: multi-domain in a single database

The Domain suite of modules runs a group of affiliated sites from a single installation and a single database. Users, content and configuration can be shared, and the module decides which content appears based on the domain being viewed. Its 3.x branch works with Drupal 10.2 and 11. It is the right choice when the same content must appear on several sites, or when editors need to work from one back office.

The Drupal site factory

A site factory industrializes site creation from a common template, but each site keeps its own deployed code. Some specialized hosts offer this model. It suits organizations that launch dozens of sites a year and want to update one site without touching the others.
Drupal multisite or Domain module: separate databases or one shared database for several sites

How to set up a Drupal multisite step by step

The steps below apply to a Drupal 10 or 11 installation managed with Composer. Always test on a staging environment before production.

1

Point the domainseach domain points to the server and to the same web root as Drupal.
2

Create one folder per sitein web/sites/, for example sites/lyon/, with a settings.php copied from default.settings.php.
3

Declare the domainsin sites/sites.php, map each domain to its folder.
4

Create the databasean empty database and a dedicated user per site, set in the site’s settings.php.
5

Install the sitein the browser or with Drush (drush site:install –sites-subdir=lyon).
6

Separate files and configurationa files/ folder and a configuration sync directory per site.
Setting up a Drupal multisite in 6 steps.

Example sites.php file

The sites/sites.php file maps each domain to a folder. It is optional when the folder name matches the domain exactly, but we recommend always filling it in: it is easier to read and lets you handle test environments.

<?php
$sites['lyon.example.com'] = 'lyon';
$sites['geneva.example.ch'] = 'geneva';
$sites['lyon.example.localhost'] = 'lyon';

Each folder (sites/lyon/, sites/geneva/) holds its own settings.php, with its database credentials, and its own files/ folder.

Separating files, configuration and modules

To give one site its own modules or themes, create modules/ and themes/ folders inside that site’s folder. Also set a separate configuration sync directory for each site, or a configuration export from one site would overwrite another’s.

Managing a Drupal multisite day to day

  • Drush: target a site with the --uri (or -l) option, for example drush --uri=lyon.example.com cr. For database updates, loop over every site with a short script.
  • Backups: one backup per database and per files folder, tested regularly.
  • Updates: update the code once, then run database updates (drush updb) on each site right away.
  • Monitoring: a site that breaks after an update must be spotted immediately, so set up an automatic check on every domain.
  • Performance: caching, a CDN and optimized images benefit every site; our Drupal performance tips apply site by site.

Setting up a Drupal multisite: site folders, the sites.php file, databases and Drush commands

Drupal multisite and the Drupal 10 end of life

According to the official schedule, Drupal 10 reaches end of life on December 9, 2026, the week Drupal 12 is released. After that date, no more security fixes will be published. In a multisite, the upgrade happens for every site at once: each module used by at least one site must be compatible with Drupal 11. That is the multisite advantage (a single migration) and its drawback (one blocking module delays everyone). Inventory each site’s modules before planning the upgrade, and strengthen security with the right Drupal security modules.

Is a Drupal multisite right for you?

Tick the statements that match your project. Nothing is stored.

Is a Drupal multisite right for you? (nothing is stored)

Conclusion

A Drupal multisite remains an effective way to run several similar websites: one codebase, grouped updates and controlled costs. In return, it calls for discipline: sites with similar needs, tested updates and monitoring of every domain. If your sites must share content and users, the Domain module will be a better fit; if they diverge, separate installations will spare you a lot of constraints.

Frequently asked questions about Drupal multisite

Does Drupal multisite work with Drupal 10 and 11?

Yes. Multisite is part of Drupal core and works with Drupal 10 and 11, using the same approach of folders under “sites” and a sites.php file. With Drupal 10 reaching end of life in December 2026, a multisite must move to Drupal 11 for all its sites at once.

Does each site in a Drupal multisite have its own database?

Yes, that is the standard setup: each site has its own database, files and configuration. Sharing tables is technically possible but not recommended. To share content and users, the Domain module is a better option.

What is the difference between Drupal multisite and the Domain module?

Multisite shares the code but keeps separate databases, so the sites are independent. The Domain module uses a single installation and a single database, and shows different content depending on the domain, so the sites share users and content.

Is there a module for Drupal multisite?

Classic multisite needs no module: it is built into core. The most widely used modules for handling several domains are those of the Domain suite, which take a different approach with a single database.

What is a Drupal site factory?

It is a platform that creates sites at scale from a common template. Unlike multisite, each site can have its own deployed code, so it can be updated independently. It suits organizations that launch many sites.

Is a Drupal multisite a security risk?

The risk is shared: a flaw in a common module affects every site. On the other hand, the fix is applied everywhere at once. Regular updates, separate backups and monitoring of every domain keep that risk under control.

Our sources