I have a question on installing multisite version of drupal on godaddy (but I guess this is a general question not specific to godaddy).
I have a working copy of drupal (single site) for over a year installed in webroot folder called drupal. This uses the default sites/default copy inside the sites directory. To access this copy, I have to type in the web browser http://www.mydomain.com/drupal. This has never been a dealbreaker for me.
Now I want to setup a multisite. Following the instructions online I created a new database and created a news subfolder called test in the sites directory so now I have:
/drupal/sites/default
/drupal/sites/all
/drupal/sites/test
Inside the test directory I copied a new settings.php and pointed it to my new database.
My question is .... what should I type in my web browser to access and install the new test database? All variations Ive tried do not seem to work and just sends me back to my original site at /sites/default.
Comments
I am on godaddy as well. When
I am on godaddy as well. When I setup a second site on my install, I had to point the second domain to the folder my install was in.
Here is brief outline of what I did -
1. In the sites folder of drupal, I created a folder called myseconddomain.com
2. Using godaddy's admin panel, I set the domain to the same directory as my first site. (My drupal install was in the root, for you I believe it may be /drupal, basically you want to point it to the folder that has your drupal install)
3. I visited myseconddomain.com and I installed the new site.
I know this is brief, but I hope it helps. You could also use a sub domain. something like test.yoursite.com
Quick question. You have
Quick question. You have registered 2 domain names but are using them both on 1 hosting account? Did I understand that correctly?
Yes I am using their deluxe
Yes I am using their deluxe plan.
I did similar to what you
I did similar to what you mentioned unfortunately visiting myseconddomain.com would only fireup the first site. Am I missing something? Common sense would tell me they would fireup the same site since they are pointing to the same location (drupal root not the sites subfolders) or does drupal automatically redirect them to the proper place magically?
I only need to create to
I only had to create an additional folder called myseconddomain.com and drupal handled the rest.
I know someone who used this method...
Check out http://drupal.org/node/261942. I have a friend who just set up a multisite with Godaddy and he told me this was the method he used and it worked perfectly.
Step 4 talks about setting up subdomains in Godaddy. I didn't see where you did this based upon your post.
Did you add a settings.php to the new site?
This was what my buddy missed with his original installation.
Still no go
Yes I just did step 4 now. I created a subdomain forwarding to the drupal root with the same name as the created subfolder. Unfortunately all of them open to my original site when fired up in the web browser and not the expected new install of a database.
I also want to clarify when setting up a subdomain in godaddy domain manager, we are talking about creating a subdomain redirection/forwarding to the drupal root installation right?
Assuming drupal root installation is in webroot (drupal not installed in a subfolder), does that mean when you browse to http://subdomain.domain.com, the URL address in the browser changes to http://www.domain.com (since that is where the redirection was told to go) or does the URL address still retain http://subdomain.domain.com? The reason I ask is because any redirection I do changes the address to http://www.domain.com hence opens up the original site.
I dont exactly understand how drupal magically directs multisites to their proper independent databases when all the subdomains point to the same location.
Install script creates the link
You have to go through the installation for each of the sites. Don't forget to add the install.php.
When you navigate to the subdomain this should trigger the installation.
This is where Drupal links the subdomain to the appropriate database.
Finally working
I would like to thank everyone here for all the help I received. I finally sort of got my multisite working. Sort of because a number of things had to be installed in a manual, convoluted way. Bottom line drupal worked as expected and all the problem was in godaddy side. Minus infinity points to Godaddy!
My problem started when drupal would not see the redirected subdomains. Godaddy would redirect to my drupalroot but drupal will not auto magically route them to the proper site/database and would always fireup the default site. All this while I thought drupal was at fault since godaddy was redirecting properly and drupal was confused somewhere.
In the end here was what solved my problem. I realized you can do the same thing many ways in godaddy and usually they are the wrong thing to do. Do NOT use domain manager to setup your subdomain redirections. Do NOT use Host Connections 2.x either to setup your subdomain redirections. What worked for me was restarting from scratch (deleting all the subdomains redirections I previously did in either previous ways) and DO set them up manually by fiddling around with the ARecord. That fixed all my problems! I hope this may help someone from this hair pulling experience.