Hi, I apologize in advance if this is something that has been brought up recently. I've done quite a bit of searching, and can't find cases exactly like what I'm attempting to do.
For the server I run, we're slowly migrating to a new domain, and as part of that migration, I'm trying to consolidate our drupal installs with multisite. Currently, each of our major subdomain sites that are single sites are set up this way. The current setup is that I have the subdomain pointing to the drupal directory on the site, called /drupal/, and within the sites folder of /drupal/ I have folders for each site like grad.mysite.org.
My problem is that I'm wanting to setup multiple sites within each subdomain, all running off the same drupal install. So, I'd like a structure like this:
grad.mysite.org/site1
grad.mysite.org/site
The problem I'm running into is that when I create a folder such as grad.mysite.org.site1 within the drupal install, and try to navigate to it, all I get is a prompt to install drupal at grad.mysite.org. If I go ahead and install that, then when I try to go to a subdomain, I get the Page Not Found error from the grad.mysite.org drupal install.
Is there something that I'm messing up on this install setup? From what I can tell in the multisite documentation, this should not be problematic, but I can't get my subsites off the subdomain to be recognized as valid.
Any suggestions/help/etc would be greatly appreciated,
V
Comments
Ok, I fixed my own problem.
Ok, I fixed my own problem. Turns out, I needed to create a symlink in the drupal directory that was named the same as the subdirectory I was going to be using. So, this is how my install looks now:
Main Drupal Install location: drupal folder
Multisite Folders: drupal/sites/XXXX
I currently have multiple subdomains set up, with sites within subdirectories of those subdomains. To that to work, I created folders for each in sites, such as :
test.mysite.org/site1
rest.mysite.org/site1
Then, I went into the main drupal folder, and created a symlink to the subdirectory name:
ln -s . site1
Doing so allowed me to access the directory multisites within each subdomain, if that makes sense. And, each subdomain is being pointed to the drupal folder, using c-panel when they were created.
Hello everyone I need help
Hello everyone
I need help with multisite installation. I tried adding folder in sites/en and made a symlink but It's not working can anyone advise me how to install it.
RE: Hello everyone I need help
could you please provide more detail on what you have so far. And what you'd like to achieve at the end.
thanks,
Thank you ptweb An example I
Thank you ptweb
An example I need to set subfolders like mywebsite.com/subfolder and am in shared hosting as well.
This is my main site : mywebsite.com
and I want mywebsite.com/site1
I have followed every forum but nothing worked for me please if you can help me.
Many thanks
Subfolder setup
If you are setting up this sub-site of a multisite in a subfolder,
then you need to create a subfolder within your 'sites' directory called 'mywebsite.com.site1'.
Copy sites/default/default.settings.php to sites/mywebsite.com.site1/settings.php.
Then you need to create a database as usual for this site and then do a Drupal install by hitting this url http://mywebsite.com/site1
I did but the message I
I did but the message I receive when I acccess http://mywebsite.com/site1 is Page not found
Apache config
I assume your main default drupal site is working or at least can be found. If not then you should get clear on that first.
You will need to tell apache to direct all requests to site1 to go to your base drupal install which will in turn dispatch the request to the appropriately named directory (and use the settings file located there).
I have an apache configuration file /etc/httpd/conf.d/drupal.conf which apache loads. It loads any .conf file in this directory, so you don't have to edit the main httpd.conf file.
In drupal.conf there is a line like this for each sub-directory site:
Alias /site1 /var/www/drupal
Alias /site2 /var/www/drupal
Note, after making these kind of changes, you will need to restart apache.
-dave
I need my main site and
I need my main site and subfolder can you give me any instruction and many thanks for giving me your time
Is your main site at
Is your main site at http://mywebsite.com up and working?
If not, then you need to configure that first and follow basic drupal install instructions.
If your hostname is mywebsite.com and you have no other drupal sites on your server then this is not a multi-site issue yet.
http://mywebsite.com is up
http://mywebsite.com is up and running but I want to add multisite I said previously and is not working for me. sorry for annoying your and thanks for your time again.
On your server you have a
On your server you have a folder for drupal. This is the top-level folder for drupal. For instance, in my case it's /usr/www/users/mile23/drupal/. Yours is probably different.
You want all of your domains and subdomains to point to this folder. For instance, mysite.com would go to that directory, as would someother.com and so would foo.mysite.com and bar.someother.com. This is a setting you'd change on your ISP control panel. It might be called 'parking' your domain, or 'mapping' the domain to a directory. In my case, all domains are mapped to /usr/www/users/mile23/drupal.
Now in your drupal/sites folder you make one subfolder for all those domains. The way this should look is shown in drupal/sites/default/default.settings.php. Read the settings file. This is because drupal is smart enough to know which domain is being used to access it, and chooses the proper subdirectory for settings.
So if you have a bunch of different drupal sites, the basic rule of thumb might be that all the different drupal/sites/default folders in each of them get a new home in drupal/sites/, each with their domain name. So now instead of just sites/default, you have sites/someother.com, and sites/foo.mysite.com and so forth. Each of these has their own settings.php file, and a sub-heirarchy of themes and modules, just like sites/default does.
Most of this is explained in settings.php.
Good luck. :-)
I am really confused in this
I am really confused in this multisite
Setting up Multisites in Drupal
Hi afaaro, I followed the instructions at the link below and configured a multisite configuration. I am configuring it on my local system using Windows and WAMP server just to get familiar with drupal since I am new to it.
http://justinhileman.info/articles/a-more-secure-drupal-multisite-install
The only problem I had with this setup on my local system was I had to configure the host file to point to the www.domainname.com of the site I was testing. Without doing this drupal did did not recognize the specific sub site setting.ini file.
On your shared hosting site you would not have the same issue since you would use the cpanel, add your new domain and it would point to the right location.
Hope this helps.
Kyle
childsite1.parentsite.com
Looking for guidance on this structure in Drupal
Just posted detailed
Just posted detailed instructions for creating a Drupal 7 multisite on Green Geeks. Depending on your hosting company it may (or not) work for you.
http://www.blogtooltips.com/drupal-7-multisite-greengeeks
If you're using Drupal 6 the instructions may not work. I've also installed a Drupal 6 multisite on Bluehost, but haven't had time to post those instructions, but will soon.
multi - subdomain request get run forever
Hi All,
I apologize if this is asked/answered somewhere.
I have setup that run multi-sites as
drupalroot/sites/default
drupalroot/sites/abc.org ===> go live eventually on production
drupalroot/sites/tle.abc.org ===> for my local development
drupalroot/sites/stg.abc.xyz.com ===> for staging to test
So with this setup, the site runs just fine on my local development, on production but not on staging.
whenever I go to staging server as http://stg.abc.xyz.com/user and create an account, the request will run forever.
My staging + production box are both ubuntu 10.0.4 that are actually a duplicate to each other.
Any help are very much appreciated.
Thank
Truyenle