Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By jpolt on
I've read numerous instructions on how to use Drupal for manging multiple sites but can't get the hang of it.
If I create sites/testsite and copy sites/default/settings.php to it, should I be able to access my testsite using
http://localhost/drupal/testsite ? I can't so, clearly I'm missing something.
What I can't figure out is how http://localhost/drupal/testsite would b able to find drupal/index.php and use the settings for testsite.
Any explanation for this would be very helpful.
Comments
...
Hi.
Copied from settings.php:
So I would say your path should look like sites/drupal.testsite/settings.php.
hth,
Stefan
...
I have that!
Under drupal I have sites/testsite/settings.php
how do I address testsite?
I'm using http://localhost/drupal/testsite
but that doesn't work gives me a 404.
I can't tell if seettings.php needs to be changed.
I think you need to set up
I think you need to set up vhosts in your httpd.conf file
http://drupal.org/node/32715
Multiple databases required
It strikes me that I may need to create a seperate database for each site, as I don't know if a Drupal database can distinguish between different sites.
I haven't seen any mention of needing to create new databases for multiple sites, so I'm not at all sure if this is an issue.
Please advise.