Hi all,
I have 'Yet Another Multi-Site' YAMS question. ;)
I've seen numerous posts about how to get multi-site Drupal working with subdirectories but no response that appears to work. So apologies to those of you that are sick of looking at questions like this because I know I am!
Right, I'm running Drupal 4.7, Apache 1.3.33, PHP 4.3.11, and MySQL 4.0.25. If you need other specs shout.
I would like to setup a single Drupal installation at www.example.com and then have several other subsites accessed by going to www.example.com/subsite1 , www.example.com/subsite2 , etc.
The INSTALL.TXT states:
Sites do not each have to have a different domain. You can use subdomains and subdirectories for Drupal sites also. For example, example.com, sub.example.com, and sub.example.com/site3 can all be defined as independent Drupal sites.
It goes on to say:
When searching for a site configuration (for example www.sub.example.com/site3), Drupal will search for configuration files in the following order, using the first configuration it finds:
sites/www.sub.example.com.site3/settings.php
etc...
From what the INSTALL.TXT says it appears that I should be able to do exactly what I want but I'm finding it difficult to implement.
I've setup:
sites/default/settings.php
sites/www.example.com.subsite1/settings.php
And configured www.example.com.subsite1/settings.php to use the same database and different tables with table prefixes which I've loaded. To prove categorically that I am indeed using www.example.com.subsite1/settings.php I have put in the an invalid user name for authentication to the database so I should get an error when it finally uses that settings.php config.