I GIVE UP
After trying for aeons, I am posting for help on this forum

I have a godaddy deluxe hosting plan.
I need to host 3 websites
http://www.drupal1.com
http://www.drupal2.com
http://www.drupal3.com

on the single drupal installation

and two websites
http://www.joomla1.com
http://www.joomla2.com
on a single joomla installation

and another html site
http://www.html1.com

Remeber I am not talking about sub-domains as of now.

I am just not able to get the multisite for drupal working.

Can somebody please explain the exact steps.
I already have http://www.drupal1.com live

I have tried the following in vain:
1. Created www.drupal2.com in the sites directory. Dont know how to point this domain to drupal1.com on godaddy so as to be able to run the install script. Should the settings.php in this folder be blank? I have also created a new database. Wil the tables in this be populated by drupal itself as they were done for my primary site drupal1.com.
2. Dont know how to setup simlinks in godaddy.
3. Dont know how to make the multiple websites individually point to their own contents.

Comments

vm’s picture

Dont know how to point this domain to drupal1.com on godaddy so as to be able to run the install script.

The above is a large part of the problem you are having. GoDaddy should supply information on how to set up multiple domains on yoru account provided they allow you to do so. Their support channels should help with this.

Should the settings.php in this folder be blank?

blank ? no. it should be an unaltered settings.php from a fresh download or from the archive that you may have kept when you originally downloaded drupal. Basically, you just don't want it to be the same settings.php you used when you installed drupal the first time because your DB information has already been written to that file during installation of the first site.

with reference to 2 and 3, godaddy support should help. There has to be a knowledge base or support forum for that host which will give you specific information on how to accomplish these tasks. If not, file support tickets if necessary.

kayaker’s picture

I have Drupal Multisite at Godaddy (and coincidentally Joomla MS as well but on a different hosting plan).

If you have www.drupal1.com live and working, then you're almost there.

Follow VeryMisunderstood's advice and create a "virgin" settings.php in sites/drupal2.com.

On GoDaddy's Hosting Control "Add domain" drupal2.com and point it to the same folder that drupal1.com points to. (Beware if you talk with GoDaddy support, "some" of them want you to point each domain to its own folder.)

If you haven't removed the install files from the Drupal1.com root, then when you point your browser to drupal2.com, you should see the install script.

Edit: Re Step 3. If you follow the drupal2.com install script and create a new database just as you did for drupal1.com, then each drupal site will be running off a common codebase but with different contents.

__________________________________________________________________________________

Aweigh - not all who wander are lost.

pratiklohia’s picture

i want each of my site to have different content as well as ability to have different themes and modules
its basically all the sites are completely different from each other and serve different purposes and audienes.. like if one os of food recipies then the other is of airplanes...

kayaker’s picture

Follow the above suggestions.

ability to have different themes and modules

Install the modules for both sites in sites/all/modules then activate the appropriate modules for each site.

Install the themes for both in sites/all/themes then in each install, select the desired theme.

__________________________________________________________________________________

Aweigh - not all who wander are lost.

pratiklohia’s picture

how do i make drupal2.com point to the same folder as drupal1.com on godaddy?

pratiklohia’s picture

I did the following
added the domain drupal2.com to drupal
created a new database named abc.
created a new folder named www.drupal2.com in the sites folder
copied a virgin settings.php to it.
and then called www.drupal2.com in the browser
i get the following error

Fatal error: Call to undefined function drupal_init_language() in /home/content/p/r/a/pratiklohia3/html/install.php on line 33

please help

mattwmc’s picture

On GoDaddy's Hosting Control "Add domain" drupal2.com and point it to the same folder that drupal1.com points to.

My drupal is installed in the root so would it just be the root? - or a specific folder like includes, sites?

*Added - Because I pointed it to the root and it just shows my existing drupal site, lol.

pratiklohia’s picture

I have managed to get different databases on godaddy drupal
got respective settings.php etc etc required for multisite install
install is succesful as when i run the install scrip again it showws the drupal already installed message
also the databases have the required 40 tables each

Problem is:
When i finally go to the site i get the following message

Fatal error: Call to undefined function user_access() in /home/content/p/r/a/pratiklohia3/html/modules/system/system.module on line 98

Any pointers??

bombayhustle’s picture

See http://drupal.org/node/324325.
Hope this helps. I have a multisite drupal 5.11 instance that manages 3 domains, each with their own DB and theme (i use zen themes).

hsaleem’s picture

I used GoDaddy Hosting Apps to install my Drupal site, and later decided to add multi-sites to it. I created a website for a company with offices in different locations, and wanted each subdomain to point to a Drupal installation with it's own database. Here is my experience so far:

1. Installed Drupal 6.13 on www.mysite.com
2. www.mysite.com points to the Drupal installation
3. Created folders under sites (in.mysite.com, us.mysite.com, nz.mysite.com)
4. Added subdomains using GoDaddy Control Center. Each subdomain points to the base install (and not the subdirectory in sites folder)
5. Downloaded a fresh install of Drupal from the website, and extracted the default.settings.php from the sites/default folder
6. Put the default.settings.php file in each subfolder of the sites directory (in.mysite.com, nz.mysite.com, ...)
7. Renamed default.settings.php to settings.php in each folder
8. Copied install.php from the downloaded archive (Step 5) and placed it in the root directory (the one that www.mysite.com points to)
9. Created a separate database for each subdomain using GoDaddy control center
10. Visited in.mysite.com in a web browser (and every other domain)
11. The install script guides through the rest of the process

Hope this helps anyone seeking for it!

-- Hasnain

ylens’s picture

Hasnain, thank you so much.

boy, am i glad! after three days of hair-pulling experience, i finally got the sites up and running!

at first i missed number 3, where i created folders in the root and not inside 'sites' as you said, a big blunder. but after repeated trials and reference to your installation guide, i finally got the subdomain working! and oh, i am with godaddy shared hosting too...

thank you once again...

by the way, i am a drupal newbie...

solodky’s picture

how do i attach a new url domain to an exsisiitng godaddy drupal site?

Net Mystic’s picture

Wonderful! I followed this method step-by-step and it worked like a charm! Thanks very much hsaleem! Rock on!

psych0hans’s picture

Hi, I tried your method but I get this error... Any idea where I could be going wrong? Cheers!!!

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache Server at store.midnight-trades.com Port 80

____________________________________________________________________________________________________________________________________________________________
(edit)

I tried again the next day and it worked like a charm... Dunno what was wrong earlier... thanks.

jebernier’s picture

Hasnain,

Great instructions...I'm working on this in my GoDaddy site right now.

In Step 4 when you say "points to base install" do you mean the /sites folder or the "html" folder which is my base on GoDaddy?

Thanks,

John

jebernier’s picture

Hasnain,

Sorry...one more question on Step 8. They is already a install.php in the root directory from the first install. Is it ok to overwrite it with on one from downloaded archive? Will this cause issues with my existing Drupal site?

Thanks again,

John

jebernier’s picture

I was able to complete the install and view my website.

When I tried to view it again, I get a 500 Server Error. I can get to the Congratulations, Drupal has been successfully installed page but when I click to view my site, i get the following error:

Forbidden

You don't have permission to access / on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

jebernier’s picture

I thought it was working, but when I click and link to administrate I get a 403 Forbidden error?

promote-drupal’s picture

I had a website http://www.example.com and wanted to add demo as a subdomain to it with drupal multisite support. Listing out my findings and steps that I followed to achieve this. Hope this could help new users of drupal like me.

  1. To setup example.com I had used godaddy's hosting connection:
    1. Login to godaddy.com with your credential.
    2. Select "manage account" from control panel
    3. From content tab, select "Go Daddy hosting connection" link (you can also go there by clicking "Manage your application" link as well
    4. From the left side menu (Administration tools) select "Content Management"
    5. Select Drupal and follow the instruction
    6. This would also create a database (after asking couple of questions like database password etc. and would also install drupal on your hosting space
    7. Depending upon your plan and CPU load it might take some time to install
    8. You might look into the installation status by refreshing the page or you might wait for the email with completion status
  2. Well, now your http://www.example.com is working fine and you want to create another subdomain say demo.example.com with drupal multisite feature
  3. Now go back to your go daddy's hosting site (manage your account - follow steps as given above)
  4. Click on "Databases" fieldset and click on MySql link (I have hosting on mysql platform)
  5. Click on "Create databases" button (on the top) and create a database say "abc".
  6. Provide password etc. as asked by the tool
  7. Now before you log out make sure you have ssh access to your site
  8. If not then open "settings" fieldset of your account management page and click on "SSH" link. It would ask you a phone number. Provide the same and within 1-2 mins you will get a call and it will read out your password automatically.
  9. Create your new sub-domain (say demo) by clicking "Your domains" link from "Manage your account page" of godaddy.
  10. While creating the new sub-domain make sure it is pointing to your root directory (for my case) or your drupal installation directory (say www.example.com/drupal)
  11. Once you have successfully created the sub-domain and your ssh setup is ready, just log out
  12. Now Login to your site using SSH client (I use my favorite putty)
  13. Create demo.example.com folder under sites directory of your installed drupal folder (for me it was html folder as I installed my base Drupal site on the root directory itself)
  14. Copy settings.php from sites/default directory to demo.example.com folder
  15. Open the file using vi and provide the mysql database (new one that you just created) login name, password and database name. Please note it is always better to verify if the database has been created successfully or not by clicking "manage via phpadmin" link from your database management page. Your login name would be the same name of your newly created database name
  16. You are almost there buddy...
  17. Save the file(settings.php) and from a browser point to http://demo.example.com/install.php
  18. If you see bunch of warning/errors then you are sure that you are just one step away from the success
  19. I just observed that when I installed my main site using Go Daddy's hosting connection it removed the install.php from the installation folder
  20. If you also see the same then just do a ftp of install.php (from the drupal binary tar file) to your site and keep it under root directory (for my it is html)
  21. Now refresh your browser (http://demo.example.com//install.php
  22. Hopefully there are no more errors. If so then follow the instruction to install your new site

If you feel that I have missed anything here please add so and if you need any further help please contact me. I will try my best to help you at free of cost.

Thanks,

facejason’s picture

Thanks for the instructions. This helped a lot. I tried a minor variation and it worked. I used the same database as my default site, but added a database prefix in settings.php for my subdomain site. It created new prefixed tables successfully in the same database, and now I have a successful multisite drupal installation on GoDaddy where sites share a single database (but not the same tables, due to prefixing for each subdomain's tables).

The sub-domain site clean-URL's did't work on subdomains (not supported message) until I edited the main drupal site's .htaccess file (specifically, the RewriteBase, as instructed in the commented instructions within the .htaccess file).

merzikain’s picture

I can get a subdomain working just fine but I can't seem to get a completely different domain working. I purchased a domain from someone and transferred it to my godaddy account, followed the instructions above and no matter what I do, every time I go to the domain I get that damn godaddy landing page like it's parked or something. The name servers are the same for my drupal site and the new domain and I've followed all of the instructions (the more detailed and complete set) and I get nothing. Is there some step I'm missing for this?

mattwmc’s picture

I'm trying to set this up with Godaddy now.

Do you need to set the correct path in Godaddy settings menu maybe?

http://help.godaddy.com/article/5399#add_domain

Maybe in your settings, for the new domain, the path reads - example.com/newdomain instead of example.com/sites/newdomain and that is why you are getting the Godaddy page.

Maybe you need to make sure the path is pointing to example.com/sites/newdomain?

I'm no expert, but that is what I am trying now, lol.

*Added - Looks like godaddy installed it in the root anyway even though I put the path as sites/newsdomain. Trying again.

*Ok, have the path correct but I get the godaddy page as well. Wonder if the folder can't be named www.sitename.com?

*Added - I can't get this to work. How does the settings.php in the sites/www.newsite.com folder know where to look to install?

dirkjot’s picture

I now tested this with subdomains and with external domains, using hsaleem's instructions. I have some clarifications to make and wasted countless hours, so decided to post this here for others.

This is what I did to get multisite working with multiple domains and subdomains all sharing one godaddy linux economy (free) hosting account. My final setup is: Primary drupal install on hosted.com. Second site (second.com) takes its content from hosted.com, but the users doesn't see this (pages show up as http://second.com/node/4). A subdomain of hosted.com also has its own site, sharing code but not the database with hosted.com. [all hostname are fake, of course]

What I did:

1. Set up drupal on hosting account, let's call it hosted.com. I first installed drupal in a folder (hosted.com/drupal7) but I ran into trouble later, so it is essential to install it at the root (/).

2. Do not enter any content in your hosted.com drupal, as I ended up wiping it and trying it again in my attempts to get this working. Much easier if there is nothing there.

3. Now log into Godaddy, and find the Hosting tab (in their horizontal tab display). Click Launch to view the (free) hosting you got on hosted.com. There is a top menu (currently green button with black text), choose Settings, then Domain Management (there are different ways to get to the same place).

3b. Click the "Add Domain" button on the top right and enter the name of the second domain you want to host in your drupal. Let's say it is second.com. Godaddy will tell you that as economy user, you can only redirect this to hosted.com, not to hosted.com/subdirectory. Luckily Drupal doesn't mind (as long as you installed it in the root of hosted.com).

3c. By clicking on your main account, hosted.com, you should also be able to set up subdomains for that (toasted.hosted.com), but you cannot do that for your other domains (waita.second.com doesn't work). Forward subdomains to root (/).

4. In the FTP manager (Content menu), add folders under sites so that your new sites are recognized by drupal. I added second.com and toasted.hosted.com. In each directory, copy default.settings.php to settings.php and don't forget to allow owner and web user to write to that file. As copying a file is a pain with their ftp manager, you could also just create an empty file called settings.php, or take settings.php, edit it and nuke its contents.

5. WAIT for at least an hour so that the changes can take effect. If it doesn't work, wait another 3 hours before you make any changes. Domain name changes can be very slow. There is a security risk here, while you are waiting somebody can set up drupal for you. If that happens, wipe and start again. Avoid this problem by only changing the permissions on settings.php when you are ready to go.

6. Go to the new site, second.com, and you should see the drupal installer (careful types will change permissions on settings.php only now). It will not actually install drupal again (it uses the same stuff as hosted.com does), but it will allow you to add themes, languages, etc. My second.com runs a different language than hosted.com, and that works!

6b. Make sure to install the databases correctly: They need to be initialized in Godaddy's database tool (under the green/black menu). The installer asks for details and remember that for Godaddy, dbname == dbusername and dbhost is not localhost but something like (dbname).db.(longnumber).hostedresource.com, with your dbname and some number substituted. See the database tool for this info (click on the pencil icon after the database name). Alternatively, you could host all your sites in one database using prefixes. This also makes it easier to backup your site, only one db to dump.

7. Enjoy. I spent hours on this but when I wiped everything, started again, and waited 3 hours, it worked like a charm. It is a matter of getting it all right at the same time.