Quick background. I'm moving to a new host. I have this same setup working under a different environment on my old host (Apache/Windows). Setting up LAMP on new host (Ubuntu 10.10). I am new to Linux and a novice to Apache so I'm sure this is a configuration option that I messed up somewhere.

So I have a default site set up and working fine under the default directory (sites/default). I set up my vhosts so that all subdomains point to the drupal install

ServerName example.net
ServerAlias *.example.net
DocumentRoot /var/www/example.net/drupal

I added sites/test.example.net and set up setting.php to look at the new test DB I set up for it.

When I go to test.example.net it still pulls from sites/default. I have confirmed this by putting gibberish in sites/default/settings.php and confirming that test.example.com breaks.

mod_rewrite is on, .htaccess is working. Sure I just missed something simple, I just can't find it.

Comments

ayesh’s picture

D6 or 7 ?
In D6, what is the folder you created under /sites folder ?
Try creating a /sites/test.example.net folder and copying fresh default.settings.php file there.

In D7, did you correctly set the sites.php file ?

unclejustin’s picture

Ayesh thanks for your reply! Got me thinking on the another path. It's D7 install. I did not user sites.php since the notes say that it is optional, and not needed.

Turns out it was a permissions issue. Weird, I was getting no errors, but this is how I fixed it. As per http://groups.drupal.org/node/121989 I chmod the site's directory to 777 and the settings file to 666 and BOOM! Site works!