multisite manager difficulties

jbc - July 30, 2007 - 22:38
Project:Multisite Manager
Version:5.x-0.9-1
Component:User interface
Category:support request
Priority:normal
Assigned:schuyler1d
Status:closed
Description

This looks like a really useful module in the making. Especially once it is combined with install profiles.

I've spent the past two days trying to work out from the Drupal documentation, multisite group and forums how to install a multisite environment using shared code, different d/bases, under 5.1. I've been through just about every post on it that I can understand, edited apache conf files et al and at the end of the day, I just haven't been able to get it working.

I'm hoping the multisite manager module might just save my sanity...I'm receiving an increasing number of enquiries about Drupal sites, but feel sure that I need to run at least a core number from a shared codebase, or I will be forever updating modules on multi-installs.

For now I'm running the multisite module under a WAMP environment (WebDevSuite, under WinXP). Here are the steps I have taken:

I've amended this line within settings.php, within the default folder:

#    $base_url = "http://www.example.com/site/$my_site_base";  // NO trailing slash!
    $base_url = "http://localhost/$my_site_base";  // NO

I've used Create Drupal Site with these settings

  • title: another drupal site
  • shortname: site1
  • site link: {base_url}/site/{shortname}
  • no table prefix
  • user name and password: {global priveleges}
  • database name: {shortname}

The database is successfully created. Good.
The link that is provided is : http://localhost/drupal/site/site1
Or, if I set, site link: {shortname}, and create again (after deleting the site-node and d/base) the link is set to http://localhost/drupal/site1

Either of which gives a page not found message. I really want to access site1 at http://localhost/site1 and so on for site2 etc.

No folder / settings.php is set up for the new site.

  • Is that intended to be done manually? At what stage?
  • Why is the link from the created site not going to a new Drupal site?
  • Is the $base_url causing problems? What might I set it to?

Hoping you can save the little hair i have left from being pulled out in another round of exasperation.

With appreciation
Jbc

#1

schuyler1d - July 30, 2007 - 22:48
Assigned to:Anonymous» schuyler1d

I'm hoping the multisite manager module might just save my sanity...
me too! :-)

This is what you need to fix in the multisite_manager settings:
site link: {base_url}/{shortname}
(and you should save the change in the 'advanced' section of any pre-created sites

I should warn you that the reason why the pattern of example.com/site/{shortname} is a good idea is because if you want clean urls on the main site, then you need to filter down to the others. The way you are setting it up, you can make it work, but then you might want to put the 'root' site somewhere specific, too like example.com/main/

If you do this, you might need to rearrange your ./sites directory a bit--one directory would be called example.com.main and the directory for your other sites will be in ./sites/default

Also, while you're referencing your site as localhost/site, you might have problems picking up the right directory in ./sites--it will be looking for ./sites/localhost.main so make that a symlink (oops, do they have those in Windows?) or a copy of what you have in ./sites/example.com.main/

Hope that makes sense and good luck!

#2

schuyler1d - February 8, 2008 - 22:22
Status:active» closed

closing from no traffic

 
 

Drupal is a registered trademark of Dries Buytaert.