Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.As Drupal 8 now required the sites/sites.php by Change notice http://drupal.org/node/1792924 done in D7 #1055862: Require sites.php to opt-in for multi-site support/functionality for performance reasons
Documentation issue: #1018324: Adjust documentation for aliased multi sites to include more info and examples.
Open issue about removal of example.sites.php : #1757536: Move settings.php to /settings directory, fold sites.php into settings.php
We can implement this for both Drupal 8 and Drupal 7 I guess.
Is this ok for Drupal 6?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | hosting-sites-php-2008106-1.patch | 429 bytes | clemens.tolboom |











Comments
Comment #1
clemens.tolboomComment #2
clemens.tolboomDoing
echo platforms/*/sites/sites.php | xargs tail -n10the addition default is not added automatically. Only after a site edit.Is that also true when changing the vars hosting_alias_subdomain, hosting_alias_automatic_www and hosting_alias_automatic_no_www (which are used just a few lines above the new line from the patch)?
Comment #3
helmo CreditAttribution: helmo commentedYes, a verify task must run to update the sites.php file.
This does add the primary site uri to the "Automatic domain aliases: " list on the node page. Which could be confusing...
Comment #4
clemens.tolboomWe could rephrase "alias" into "URIs" maybe
"Domain aliases: " on site node-view into "Domain URIs"
"Automatic domain aliases" on site-edit into "Automatic domain URIs"
Comment #5
clemens.tolboomRegarding #2
on admin/hosting/aliases it is said
So does this issue needs a hook_update_N or should we file a new issue "When to verify all sites?"
Comment #6
anarcat CreditAttribution: anarcat commentedI don't understand that sentence.
Also, I think it's a good idea to rename "aliases" to "URIs" but it's a big change and should be moved to a separate issue. Otherwise i like the simplicity of the patch, but it would need testing.
Comment #7
clemens.tolboom@anarcat #6 the settings files are not changed automatically by this patch. Only when verifying a site Iguess. So how do we (and should we?) make sure D7 (+D8) platforms have their sites/sites.php filled in as it will benefit D7 sites as mentioned in the summary.
Does this needs a hook_update_N?
I have some reserves now as I'm not sure what will happen with the non-alias value regarding writing to the vhosts?
Do we have tests for Alias? Then we need a test!
Comment #8
clemens.tolboomI've used this for #1194602: [meta] Support the hosting of Drupal 8 sites but am still unsure whether this is needed. The file sites/sites.php is not filed by it and Drupal 8 is installed and running.
Comment #8.0
clemens.tolboomUpdated issue summary.
Comment #9
clemens.tolboomAdded a core issue + using related issue field.
Comment #10
clemens.tolboomHmmm ... according #2168617: INSTALL.txt has not been updated to match multisite functionality change the _file_ sites/sites.php only needs to exists.
I leave it to @helmo to "won't fix" this issue.
Comment #11
ergonlogicIf there's a performance gain by using sites.php, then IMHO we should implement it by default for D7+. Reading the core issues, though, I'm not convinced there is (yet).
Comment #12
helmo CreditAttribution: helmo commentedNew status says it all.