I have tried to do a multisite installation and probably have something confused. My original installation was of my mydomain.com/drupal6. This still works. My wife is starting her own business and I have herdomain.com and I want that to be hosted with Drupal. When I go to herdomain.com I get the following error:

Warning: require_once(dbconfig.php) [function.require-once]: failed to open stream: Permission denied in /etc/drupal/6/sites/herdomain.com/settings.php on line 93
Fatal error: require_once() [function.require]: Failed opening required 'dbconfig.php' (include_path='.:/usr/share/php:/usr/share/pear') in /etc/drupal/6/sites/herdomain.com/settings.php on line 93

I have checked the login to mysql with both root and the account for herdomain and in both instances I get in.

What I did was cp -r /etc/drupal/6/sites/default /etc/drupal/6/sites/herdomain.com edited the dbconfig.php and so far no luck.

I have chmod 777 /etc/drupal/6/sites/herdomain.com and chmod 666 /etc/drupal/6/sites/herdomain.com/settings.php. No luck.

I was probably supposed to copy something else that I missed somewhere in that directory.

Thanks in advance for any ideas.

Dave

Comments

vm’s picture

dbconfig.php is not a drupal file. Where is that coming from?

her domain.com should also be www.herdomain.com inyour sites folder

supradave’s picture

dbconfig.php is a file with the various db variables, like dbuser, etc. This is an Ubuntu install.

Found the problem. The permission for the dbconfig is 640 (in *NIX) and is in the group www-data. Changed the group chgrp www-data dbconfig.php and that seems to have solved the problem.

Now to figure out why I have no Theme.