Posted by dj.duncan on August 18, 2009 at 6:32pm
If when creating a multisite install, do I place a fresh install of drupal into directory "example", copy the defualt.settins.php of the "curent install" to the "example" as settings.php. Will this create an "example install" with the core of the "current install"?
Comments
It will, but what you've
It will, but what you've done here is created two separate Drupal installations. It's not a multi-site Drupal installation at all; with a true Drupal mutli-site installation, there's only one copy of the Drupal core involved.
The Boise Drupal Guy!
README.TXT
Find below attached text file on how-to setup a Drupal 6.13 multisite.
Source: Drupal tarbal > README.txt file.
---
How to contribute to Drupal.
An additional install
Thanks for responding. I tried the instruction in the above text, also checked in the "README.txt". No improvements.
So I installed a fresh drupal install in the site directory of the 1st install, connected it to a new database. I did this because for whatever reason that is where localhost/example.com shows up.
Now that I have done this, I went back and tried to create the multi-site and followed the instruction in the "README.txt". Now at lest I get an;
"Page not found
The requested page could not be found."
I take it that my 1st install is acting as the structure of my server. I am doing this on a desktop system.
Now the txt say to edit settings.php which I have done, I suppose I have not found the right url.
What will happen when I find the page, will it show me an install page?
When I tried
When I tried pointing my browser at "localhost/students.com/sites/teachers.com" the name of my new install (students.com) and the name of my multi-site (teachers.com) I received this message;
Forbidden
You don't have permission to access /students.com/sites/teachers.com/ on this server.
I tried changing the settings.php to reflect the same location, did not help.
Tried giving write promission to teachers.com, did not help.
So now what?
Getting multisite to work on
Getting multisite to work on a local installation like this is going to be tricky. Not impossible, but tricky. Here's basically how I do it.
First, you have to edit your computer's hosts file. The file is probably at /etc/hosts if you're using a decent OS. Imagine up a fake domain name - maybe for your case something like "teachers.test" - and edit the hosts file so that that points at your computer's IP (or simply 127.0.0.1).
Now in your sites directory, you'll want to make a soft link of your teachers.com directory and name it teachers.test. Note you are not making an alias of the entire Drupal directory; just the teachers.com directory.
Now, if you've done all this correctly, if you go to http://teachers.test/students.com (you'll still need to specify the path to your Drupal installation after the domain name), you should see your teachers.com site.
The Boise Drupal Guy!
What did you mean when you said
I did all of the above and it took me to my students.com site, (already installed)
What did you mean when you said;
(you'll still need to specify the path to your Drupal installation after the domain name),
I meant that, assuming your
I meant that, assuming your Drupal installation is in a subdirectory of your web root, you'll still need to specify that subdirectory after the .test domain name. So just http://teachers.test/ wasn't going to work, but http://teachers.test/students.com would.
The Boise Drupal Guy!
It Did
It did, and I used the students.com to create tables in the teachers database and changed the settings in teachers.com to use that database, but still say page not found.I also try every confonfiguation for the base url still nothing.
By the way I am using fedora 11.
any ideas?