By wes_elder on
I'm get the same type of error reported earlier:
http://drupal.org/node/118004 (tries both methods and still nothing)
I'm trying multisite in 5.1. I have the main site working fine and now I'm create another site eg. sites/example.com/. I've copied the settings file from the tarball to my new folder and create the new DB. When I browse to it, unlike the first/main site (which will build the db structure), I get a blank page.
Any ideas?
Comments
i think you should provide
more information for people to help. What r u trying to do exactly ? what have you done so far ? in your local machine or in some other host server ?
More Information
Thanks simul for additional the questions.
The initial site setup of the default website worked perfectly and now it is up and running like a charm.
So I created /drupal/sites/example.com and the new DB for the second URL. I copied *.php and the settings.php from the tarball into the new directory. When I point my IE/Firefox to example.com, I should have got the DB configuration screen. Instead, I get a blank webpage.
So a copied the settings.php from the default directory and reconfigured line 93 to match the new DB I created. I pointed IE/Firefox to example.com/install.php and still get nothing (another blank page). I know I'm missing something very simple. The question is - WHAT?
did you also set the domain
did you also set the domain which is a bit further along?
More Information
I think I understand your question Andy. I created/uploaded a test.txt file into the home directory of the second domain (sties/example.com/) and was able to open it fine at example.com/text.txt. That would indicate that my domain is set.
On another note for simul, Both the DB and web server are running on the same server.
I think you have a problem here:
It seems like you/yourhost havent pointed example.com to your primary Drupal installation's document root.
I hope the following will help:
Let say you have 2 domains
www.example1.com
www.example2.com
For each domain name you have its "home directory" in the server (where you upload you content).
Suppose www.example1.com has its home directory on /home/whatever/ex1
and www.example2.com has its home direcotry on /home/whatever/ex2
When the client request example1.com/somefile then the webserver looks at /home/whatever/ex1 to find that file etc.
Since your example1.com is drupal, it means that you have drupal installed at /home/whatever/ex1
In order to do multisiting , each additional domain should have the same home directory as example1.com.
This means that, whether user asks for example1.com or example2.com the webserver should redirect it to /home/whatever/ex1
Since drupal is sitting there, it knows what content to show based on the domain name.
That's what is missing in your setup , I guess.
In order to make the other domains point to your drupal's root folder, you can use one of this methods 1) symlinks 2) virtual hosts 3) domain parking.
There are a lot of posts around here explaining in detail each of these methods
HTH
Reply
I think you are right simul- there is another, possibly large problem that I not addressing here. Let me rehash this thing using your examples...
I have 2 domains - example1.com and example2.com. I parked the second domain (example2.com) on the same IP as the primary domain (example1.com). The home directory for example1.com is /var/www/html and is the Drupal installation's document root. The home directory for example2.com is /var/www/html/sites/example2.com.
Example1.com is working working fine and has not been a problem. Example2.com is the problem. I've copy *.php and settings.php from the tarball to example2.com home directory and have built the second DB. I should be able to narigate to http://example2.com and see the DB configuration page. All I get is a blank webpage. I created/uploaded a test.txt file into the home directory of example2.com and was able to open it fine at http://example.com/text.txt.
Until I understand the problem, I'm just guessing at the solution. I will go look at the other postings (symlinks, virtual hosts, domain parking) to learn more. However, if you (anybody) sees the issue or can highlight a few key documents, please let me know.
Thanks,
no, the home directory of example2.com
should be /var/www/html/
it's important. After this, you should be done !!
------
It does exactly what it's suppose to do. your file is located at /var/www/html/sites/example2.com
example2.com points there and finds the file. You dont what that.
you want Drupal to take care of multisiting business.
thanks,
simul
And now I understand!
That is something I would have never solved on my our. Never! The idea that you can point all your domains at a single unix directory and Durpal would will sort out the websites with out error is incredible. All sites are up and running and I thanks you simul for your time.