

#Drupal 9 multisite series#
The only reason to use multisite Drupal would be to manage a series of nearly identical sites with separate databases.įor that case we have built a template repository that uses a unified lookup key for a subdomain, database name, and file paths. We recommend running separate projects for separate Drupal sites, or using one of the various “single instance” options available such as Domain Access, Organic Groups, or Workbench Access. Doing so eliminates many of the advantages Platform.sh offers, such as isolation and safe testing.Īdditionally, because of the dynamic nature of the domain names that are created for the different environments, the multisite configuration would be complex and fragile. Platform.sh actively discourages running Drupal in “multisite” mode.

Is there a $PARENT type variable like I described that we can use? If not, how hard would it be add into Virtualmin?Ģ.Platform.sh supports running multiple applications in the same project, and these can be two or more Drupal sites.īut they would be separate Drupal instances: they have their assets separate and live their lives apart, and it would be much better for them not to share the same database (though they could). The two issues I see with this that maybe Joe can answer:ġ. The new Sub-server can still have email, it's own database, it's own database user, it's own DNS zone records, etc. That should then work perfectly, because now the Sub-Server would point to the Drupal Root directory. What I mean is on the 'Apache Website' page when editing a 'Server Templates', in the text field called 'Directives and settings for new websites' we need a way to set the DocumentRoot and Directory options to $PARENT/public_html or something like that instead of $HOME/public_html. Although the codebase is same, it is a good idea. I'll ask Jamie to have a look at this thread and comment on how he thinks something like this ought to work.Īfter sleeping on it I think all that we need to get Drupal multisite working smoothly is a Virtual Server for the main domain and Sub-Servers for the additional domains, but we need a way to reference the parent Virtual Server's home folder in the file system. Using Drupals multisite feature you can easily run multiple sites using the same core codebase of drupal. I'm going to be tinkering with this some, it might be something we want to fiddle with in Virtualmin.allowing databases and more of the other features in Aliases, so they fit this deployment better. A Drupal installation is tiny (about 8MB).even with a ton of modules it's only a few tens of MB. Upgrades of Drupal core can be easily handled across all of your domains by Virtualmin.
#Drupal 9 multisite install#
That'd be one way to go about it.Īll that said, unless your sites are really identical (except name and content), I'm not sure there's a real benefit to a single install of Drupal. And, you could create your databases manually. But, from a Virtualmin perspective it is pretty similar.Īnyway, you can do mail boxes (I'm pretty sure) for Aliases. Though I currently do not plan to run separate databases (just different domain landing pages for and and ).so it's a different set of problems.

So, I'm going to be digging into this very problem pretty soon.
