O'Reilly logo

Drupal 7 Multi-sites Configuration by Matt Butcher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring modules

If you have worked on Drupal before, you have likely heard the following advice given about where you should put your modules:

  • Modules that are downloaded from Drupal.org (or elsewhere) should be stored in sites/all/modules/
  • Modules that you have created should go in sites/default/modules/

Note

The fact that this is a common suggestion does not mean it is the only suggested method, or even the best. There are several competing conventions for how you should organize modules. Each has its advantages and disadvantages.

This advice is convenient for situations in which there is only one site. But for multi-site configurations, things get more complicated.

The sites/all/ directory houses data that is shared among all of your sites. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required