I've installed 5.7 without any problems. I really like it! Then I installed ubercart which is a really great e-commerce solution for what I'm working to accomplish. l know that I should be able to use Drupal across multiple websites and have read extensively about how to do this thru all the previous posts and in the drupal handbook.
Here is the rub: 5.7 has, by default, the modules and themes in the root directory drupal/modules drupal/themes Then when I go into the documentation for both drupal and ubercart, both recommend setting modules and themes up in sites/all for accessing multiple sites. I have set up the directory structures according to the instructions: sites/newdomain.com/modules sites/newdomain.com/themes and have put a new settings.php pointing to my database with username and password. Let me ask a question right here: Should the settings.php be a fresh settings.php as if extracted from the tarball or is setting the path to the database with username and password okay?
Since I already have one site up and running and the modules and themes are in the root directory with the ubercart modules being installed in the drupal/modules/ directory, should I
1, disable the store, remove it from the site configuration and move all the associated modules to sites/all/modules ? and leave the core modules where they are? and then enable the store modules again?
2. Now that I have the sites/newdomain.com/ directory set up, how do I do the install so that when I type in install, it will recognize the path and install the program for the newdomain.com as it is, the original site is installed at: www.mainsite.com/drupal with the install.php file being in this directory. The 2nd site is in www.mainsite.com/drupal/sites/newsite.com/ with the new settings.php installed as a 777 file. I don't see how I run the install for the new site. If I go www.mainsite.com/drupal/sites/newsite.com/ and upload the install.php file into this directory, that doesn't work, either.
I could just install the whole drupal and ubercart program for the new domain, but, since it's supposed to work across multiple sites, I would like to do that.
Can anyone help?
Thanks!
Casey
Comments
multisite is designed so
multisite is designed so that before install each site has a blank settings.php in individual sites/example.com folders and modules in sites/all/modules. Every domain is pointed or 'parked' to the same drupal root folder. When you have this set up, to install each site, just go to the site URL with your browser.
lunk_rat is Acquia Certified Grand Master
So, if I understand you
So, if I understand you correctly, before I installed the first site, I should have had it set up as drupal/sites/1stdomain.com and drupal/sites/2nddomain etc? Since I already have one site set up under the root directory drupal/ this would explain why when trying to do an install and expecting it to read from my subdirectory it says that the site is already installed and gives me another error messaga about common.inc on line so and so...
Is my option then, to start over and re-install according to what you are telling me? Not a big deal as I just started to configure the site. So I would then go to: 1stdomain.com/drupal/install.php and 1stdomain.com/drupal/install.php Because I have set-up drupal/sites/2nddomain.com/ when I go to my main install, go to the 1stdomain.com/drupal/install.php and it will, by virtue of going thru the steps of finding the correct settings.php file, find the settings.php for the 2nddomain.com and set that up? And that settings.php should be a fresh copy?
I hope I've expressed myself clearly enough and I do appreciate the help!
Yes. If you have all domains
Yes. If you have all domains pointed to the root drupal directory, create a folder for each domain in /sites/ and place a fresh, blank settings.php in each one, and just go to each domain with your browser and you will see the install script. Don't worry about install.php Drupal will know what to do.
lunk_rat is Acquia Certified Grand Master
I'm just not getting
I'm just not getting something here... I guess I don't see how to have all domains pointed to the drupal directory. I have many domains on a shared account with drupal being installed in the main domain. That version installs just fine. And, it only works if I keep all the modules directory in the root directory...
Perhaps if you can tell me how to make it so that when I go to www.2nddomain.com/ it will see the drupal directory. Where do I put this directive? I'm sure this is something very fundamental and easy but I'm missing it...!
Thanks!