Better multi-site support in the installer

Created on 28 June 2007, over 17 years ago
Updated 14 July 2023, over 1 year ago

Unless I have got something about the install process really wrong, it's currently necessary to copy a "clean" settings.php to the place you wish the new site to have its settings folder (keeping to the naming convention for settings folders). If you do not do this, Drupal will install the site in the default directory.

This is a real hurdle when you want to set up a new site in a multisite environment with a few simple clicks. See an earlier post I made about it; I hope this suggestion will at least trigger a response.

This is too close to the code freeze for a big feature in 6.x, but here's my suggestion:

- add an extra step to the installer between "locale" and "database".
- have it display a select menu with all possible places where the settings file for the current URL can be located.
- on submitting, have it create a fresh settings.php in the selected location.

eg, on http://my.website.com/drupal have it display the options:

default
website.com
my.website.com
my.website.com.test

(Leaving out "com", which rarely makes sense, but adding "[port]." choices if Drupal detects it is being called on a non-standard port.)

The options where sites are already installed should be removed from the list, of course.

----

To avoid cluttering the installer for people who never use this, perhaps enable it only when at least one site is already installed, or even make it part of the "advanced" settings in the Database Configuration screen.

But really, this would be a great improvement for multi-site environments.

✨ Feature request
Status

Postponed: needs info

Version

9.5

Component
InstallΒ  β†’

Last updated 3 days ago

No maintainer
Created by

πŸ‡¨πŸ‡­Switzerland cburschka

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024