Multisite: where to put what: files and directory layout

For our new multisite environement we are buidling, I need to get the initial set up correctly done. We work wit vhosts, so that dicatates very much how and where the files and repositories aer located. ## Drupal Root Obviously Drupal itself is located in /var/www/drupal, owned by root. Safe, and secure. It is a cvs checkout, so that in future we can track patches and so against drupals latest stable.## Drupal Contributions I prefer to track all repositories in CVS too. Later we will move them into our own SVN, but the repository itself is located in /usr/share/drupal/_It is an anonymous checkout, so that we cannot accidentally commit. It is owned by root too.## /sites and its siblings And here is the magic /istes settings. This too, is not hard at all/hosting/example.nl/settings.php /hosting/example.nl/modules//hosting/example.nl/themes/Those might become writable by ‘example.nl’ user. But at the moment of writing, this is not yet decided upon.sites is a simlink from drupal root: _/var/www/sites -> /hosting## site specific contributed modules and themes All sites can have three sorts of modules and theme: core, contributed and custom.

Custom modules live in /hosting/example.nl/modules/ or themes/.

Contributed modules are symlinks, for example /hosting/example.nl/modules/ -> /usr/share/drupal/modules/tagadlic.

Core modules live in /var/www/drupal/modules/.

This article was published on webschuur.com. And migrated to this blog.

in drupal hosting11

About the author: Bèr Kessels is an experienced webdeveloper with a great passion for technology and Open Source. A golden combination to implement that technology in a good and efficient way. Follow @berkes on Mastodon. Or read more about Bèr.