Multi-Site Installation | Root Site Fine | Other Sites Not Working
Fidelis - May 7, 2006 - 06:39
Although I have successfully logged in, configured and created my first page in the root directory of http://gov20.info, I can't suceed in making the other sites work:
- I have successfully installed Drupal v4.7 at http://drupal.info
- I have created 4 subfolders to a "sites" directory and named these subfolders "imf.gov20.info", "test.gov20.info", etc.
- I have created 4 more MySQL databases, each of them with a distinct user / password connection string updated in a distinct settings.php file in each of the subfolders
- I have also updated the base URL parameter in each settings.php file
- Following the instructions of my service provider, I have redirected my subdomains to the root directory "gov20.info"
I would expect after all this that typing "imf.gov20.info" would bring me to a distinct site, but it only brings me to my original site. What am I doing wrong?? I attempted to follow the instructions at pp. 190 and ff of this book...
Thanks

Redirect and symlink
I was just doing the same thing previously.
It seems that imf.gov20.info rediects to gov20.info
When that happens Drupal has no way of knowing it was imf.gov20.info. It only knows from the current web address.
What you really want is a "symlink" (Assuming you are using linux and you have shell access) from your subdomain http directory to your drupal directory. That way, imf.gov20.info will stay as "imf.gov20.info" when you type it in.
If you can't symlink, then I'm not sure what to do....maybe someone can help me out here
--
Cheers,
Thong
Tip: http://drupal.org/forum-posting
Website: http://www.edoodle.co.nz
It was too late when I wrote this...
In the first bullet, it should have read http://gov20.info instead of http://drupal.info
Thanks Thong - I'll try to work this through my provider because I do not have shell access...
patrick
Takes 3 hours?! discouraged.....
Well,
As a hosting service for http://gov20.info I am using Siteground. Although I do not have shell access, they provide C-Panel X v2.5.0. Here is what I have asked them:
Later I added this:
Still no success. Last I tried:
This is their final reply - at least $50/hr for three hours; does this make sense?!!
Does this make sense to you? I'm not a programmer but from my drupal book, pages 190 and ff, it only seems to take a few lines in httpd.conf to do!!
I need your advice: should I change hosting service, am I not communicating clearly with their tech support, etc...??
Thanks......
patrick
I think you are correct
Yes, it should be just a few lines in the conf file,
but as the book says, maybe you can try parked domains, or add-on domains. I see that you have cPanel X 2.50 too, so you may have those features. If I were you, I will try parking http://imf.gov20.info on top of http://gov20.info. See if that works (fingers crossed).
As for the fees and hours, it really depends on which level of support staff you are talking to and the market rate for the country it is in...
--
Cheers,
Thong
Tip: http://drupal.org/forum-posting
Website: http://www.edoodle.co.nz
I Tried...
I tried redirecting http://imf.gov20.info to http://gov20.info and sure enough it would redirect me, but to the root site, not to the "imf" site, and the URL in the browser window reverted to http://gov20.info as opposed to keeping http://imf.gov20.info... Not fun!
patrick cormier
G2TT, IMN, Slaw
Addon domain?
How about "addon domains"?
Check out the following definitions to clarify between redirects, addon, and parked domains at http://manual.amstechdns.com/redirects/
Has anyone else has any better experiences with cPanel?
--
Cheers,
Thong
Tip: http://drupal.org/forum-posting
Website: http://www.edoodle.co.nz
Multisite + cpanel -ssh -apache.conf + .htaccess + Rewrite
Maybe this will work:
http://drupal.org/node/37177#comment-68606
However that is for www.example.com/site, not site.example.com... You might need to modify it a bit
--
Cheers,
Thong
Tip: http://drupal.org/forum-posting
Website: http://www.edoodle.co.nz
Ok - it works now
Works now... I purchased an add-on domain ($15/yr)... thanks!!
how did it work?
fidelis
appreciate if you could share how you managed to get the add-on domain to work? i use cpanel with no shell access and i am having great difficulty in setting up the multi-sites (using subdirectories and subdomains). would like to know how you did it with add-on domain (does this mean another domain?).
fazz
http://www.thefazz.com/
This is what I have done
I was confused with the c-panel icons and their meaning: parked domains, add-on domains, subdomains; and how to reconcile this with the drupal multi-site capabilities...
This is what I have done:
patrick
thanks, but i don't intend to buy new domains...
thanks fidelis.
your solution requires the purchase of additional domains... which is not quite what i had in mind. i intend to set up various community interest sites with a single domain as being the traffic aggregator, so the additional domains is not an option.
i also would like to check whether my understanding of root directory is the same as expected in the drupal handbook. my root directory is not accessible via the root domain (eg. http://www.thefazz.com/). my root domain (http://www.thefazz.com/) actually points to a subdirectory to the root.
the root directory is "/" and contains the subdirectories such as the following...
* .cpanel-datastore
* .fantasticodata
* .trash
* etc
* mail
* priv
* public_html
the http://www.thefazz.com/ points to "/public_html", which in my understanding is the drupal root. all my drupal files and subdirectories are installed in "/public_html", so the sites directories are located: "/public_hmtl/sites" and the corresponding url is http://www.thefazz.com/subsite
this is where i get severely stuck. unfortunately, i've not gotten much luck on guidance in this regard (perhaps because it is not possible on cpanel hosted sites because i cannot access the htaccess).
cheers
fazz
http://www.thefazz.com/
any help?
can anybody help me on this?
http://www.thefazz.com/
http://www.my-kart.org/
Your understanding of root
Your understanding of root is correct. Root is where the domain name points at. Thus the (content of) "/public_html".
If it is acceptable to reach your subside with: "www.thefazz.com/subsite", you can do with a standard multi site installation. No .htaccess change is required, no additional domain names.
thanks but...
sutharsan
thanks for the response. however, i tried doing the standard multisite install with a couple of variations:
option a. maincode installed in /firstsite/ subdirectory from the root (url1 = www.thefazz.com/firstsite). i would like to access another site via url2 = www.thefazz.com/nextsite. so i created the subdirectory under /firstsite/sites/thefazz.com.nextsite/ but i cannot seem to access it via the url2 above.
option b. maincode installed in / root directory (ie public_html) (url1 = www.thefazz.com). i would like to access another site via url2 = www.thefazz.com/nextsite. so i created the subdirectory under /sites/thefazz.com.nextsite/ . Still, i cannot seem to access it via the url2 above.
i posted originally on this thread.
http://drupal.org/node/64591#comment-122097
i still do not know how to set it up properly. i've read the handbook and the install instructions over and over again and i am confused.
still needing help.
cheers
fazz
http://www.my-kart.org/
any answers to this?
anybody got any answers to this?
i am trying to use symlinks... but not sure how to set it up. appreciate any help i can get.
using option b above... i tried symlink as follows:
ln -s root root/nextsiteand...
ln -s root/ root/nextsite/and...
ln -s /public_html /public_html/nextsiteand...
ln -s /public_html/ /public_html/nextsite/neither works.
anything else needs changing? .htaccess perhaps? if so, what do i look for and change?
http://www.my-kart.org/
new topic to continue this discussion
i have decided to create a new topic to refocus this discussion:
http://drupal.org/node/91684
Multiple domain delivery on single codebase with single database
This works perfectly with Siteground. However, after quite a bit exploration and experimentation, I only just found these instructions! How do I help get your instructions escalated to be included in the multi-site instructions to help others sooner in the process? :)
Summary:
Place the complete Drupal install in the root folder of a hosting account.
For each additional domain you would like to have delivered by a single-codebase, single-database install of Drupal, you simply do the following:
- Register the additional domain at any registrar.
- Apply the nameservers for your root/Drupal account, wherever it's hosted.
- Wait 24 hours.
- If your host uses cPanel, select Parked Domains.
- Add the domain name you wish to have server by Drupal.
- Make a copy of the SQL database, find and replace to add a prefix, according to Drupal instructions.
- Import the additional SQL tables with a unique prefix for this domain.
- In the /sites/ directory, duplicate the /default/ directory and name it with the exact domain name you're parking. Include the prefix and domain in the file.
That's it. Not exactly automated, but pretty elegant.
I'm new to Drupal, so this cheat sheet would benefit from more experienced editors. But, basically, it works with Siteground.
1Q) If we install Drupal on
1Q) If we install Drupal on Domain A and point Domain B & Domain C to it, how do we install vBulletin for Domain B & C?
2Q) Should we even create an account for Domain B & Domain C in our WHM (Web Host Manager)? Or, we don't create them as real hosting account and just point them to Domain A in Domain A cpanel?
3Q) This is related to the question above. Should the Drupal database for Domain B & C be created in their own hosting account or on Domain A account?
anyone?
anyone?
New thread for this question
I am now working on this issue, too. I've posted the details in a new thread ...
http://drupal.org/node/158673
For yor parked domains, are
For yor parked domains, are you able to
- Ftp
- create database
- send and receive emails
?
multi-site and legacy files
What about legacy files? I have been thinking of going multi-site but I have some existing directories and files in some of my domains. Can these be put in the subdirectories in the sites directory??? one code base would be fantastic...