Issue with multi-site & macports on Snow Leopard

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
solide-echt's picture

Hi,

I'm having an issue that's really driving me nuts:

I'm on a Mac and moved from Leopard to Snow Leopard. I did a clean install of xcode and macports and installed all necessary ports. After some fiddling mysql (5.1.50), php (5.3.3) and lighttpd (1.4.26) are running fine. Drupal (6.17) runs fine also but I cannot get the multi-site feature to work again (it worked on Leopard). The relevant part (probably...) of the lighttpd.conf is:

# Name all drupal hosts such that they have a '.dev' toplevel domain
$HTTP["host"] =~ ".dev" {
    url.rewrite-final = (
     # imagecache
     "^/sites/(.)/files/imagecache/([^?])\?(.)$" => "/index.php?q=sites/$1/files/imagecache/$2&$3",
     "^/sites/(.
)/files/imagecache/(.)$" => "/index.php?q=sites/$1/files/imagecache/$2",
     # imagecache for private files
     # "^/sites/(.
)/system/files/imagecache/([^?])\?(.)$" => "/index.php?q=sites/$1/system/files/imagecache/$2&$3",
     # "^/sites/(.)/system/files/imagecache/(.)$" => "/index.php?q=sites/$1/system/files/imagecache/$2",

       # private files
        "^/system/files/(.)$" => "/index.php?q=system/files/$1",

      # feed alias
       "/rss.xml$" => "/index.php?q=rss.xml",

     # Search
       "^/search/(.
)$" => "/index.php?q=search/$1",

      # More than one argument
       "^/([^.?])\?(.)$" => "/index.php?q=$1&$2",

       "^/image/([^?])$" => "/index.php?q=image/$1",
      # No arguments
     "^/([^.?]
)$" => "/index.php?q=$1"
  )
}

Document root is the Mac-default "/Users/eric/Sites" directory. I use simple-vhosting:
simple-vhost.server-root = "/Users/eric/Sites/vhosts"

I place my Drupal projects elsewhere and use symlinks in the sites directory and in vhosts accordingly. I use a default settings.php, only $db_url is edited. The database connection is fine.

However, for some reason Drupal always uses 'sites/default'. I added a debug statement in bootstrap.inc (line 340) to confirm that the value of $conf is 'sites/default' for every site.

Any ideas?