Community Documentation

Advanced installation topics

Comments

Helpful Background Info

For those new to this I've written up a post explaining the background concepts behind multi-site Drupal installs at http://mikehigginbottom.com/content/drupal-multi-site-installations-magic-secret-bits. It has some specifics but focuses on the stuff you need to understand rather than the steps you need to take.

$drupal_hash_salt

Within the settings.php file, there is a $drupal_hash_salt and accompanying authentication code. When I setup a multi-site implementation, with a unique database for each supported site, does this authentication code need to change or do I use the same code for all sites working off of my common code base? If it does need to change, what is the source of the authentication code? Does that come from my hosting company?

Don't worry! The installer sets it automatically.

Hi, Bill. I'm sorry to see that your question has gone unanswered for so long.

In short: You don't need to set the $drupal_hash_salt at all: The installer sets it, and you shouldn't change it (unless you have some special reason to do so). Each site within a multisite installation will have its own auto-generated taste of salt.

---
Tom Geller * tomgeller.com * Oberlin, Ohio
See my lynda.com videos about Drupal

Same boat..

I think what the OP means is.. "I copy and paste settings.php between the multisite subdirectories.. but how do I manually generate $drupal_hash_salt" ?

I won't necessarily be running the 'DB install' everytime as I'll simply export the DB and use this as the initial template for each subsequent site.

Is it as simple as:
$drupal_hash_salt = file_get_contents('./xxx/xxx.yyy');

Where each settings.php in the multisite gets a different file?

Gary

Gary

---
Victoria, BC
Canada

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x
Keywords
advanced, installation
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here