have drupal installed and running, for default anyway. I created new site folders within the sites folder.
so ... var/www/drupal/sites/all
var/www/drupal/sites/default
var/www/drupal/sites/example1.com
var/www/drupal/sites/example2.com
Also I have made new databases and users in phpmyadmin for the 2 non-default sites(example1.com, example2.com) And also I've changed the settings.php files in those sites folders
so ... var/www/drupal/sites/example1.com/settings.php has $db_url = 'mysqli://admin:adminpassword@localhost/example1database';
so to get to the initial drupal installation I go to "http://localhost.drupal" and I see the admin page
when I go to http://localhost/drupal/sites/example1.com I get Forbidden
What's wrong?
Comments
bump etc.
Also All users have full permissions to sites, example1.com, example2.com folder and settings files within.
Any ideas where I went wrong or something I've forgotten to do?
Csn someone point me to clear directions for setting up multiple test sites within localhost?
Do you have a entries in
Do you have a entries in hosts file for example1.com and example2.com? Do you have virtual hosts defined for example1.com and example2.com? I found the instructions at http://drupal.org/node/167639 would be useful in your case.
Drupal has a multisite section at http://drupal.org/node/346385 which covers some special installation cases, such as running several Drupal sites from a single code base (also known as multi-site installations) and specifying a database table prefix etc.
All the best!
Use a new settings.php file
It's really simple to let the install make the settings.php file for you instead of relying on writing the chages yourself.
Copy default.settings.php into your example1.com folder and rename it to settings.php.
When you go to the site from a browser now, you should get the drupal install starting. If you do not, then there is an issue with permissions in Apache.
cheers,
kev