Hi everyone,
I'd like to set up multiple sites using subfolders. Basically the client wants their site in multiple languages, but doesn't want to attempt to synchronise the various sites and pages between the languages or do anything that the content translation/i18n modules offer.
So I want a bunch of independent sites in a multi-site setup. This could easily be achieved using domains like www.example.com, de.example.com, fr.example.com etc.
The question is, can I do the same thing putting the sites at: www.example.com, www.example.com/de, www.example.com/fr.
This guy explains the same problem quite well http://drupal.org/node/30857, but then the rest of the thread seems to lose track of the task and not give a decent answer.
(it might be easier to understand the question if you forget about i18n altogether and just consider the question of putting multiple sites in subfolders).
Thanks,
John
Quoting John Fletcher net@twoedged.org:
Hi everyone,
I'd like to set up multiple sites using subfolders. Basically the client wants their site in multiple languages, but doesn't want to attempt to synchronise the various sites and pages between the languages or do anything that the content translation/i18n modules offer.
So I want a bunch of independent sites in a multi-site setup. This could easily be achieved using domains like www.example.com, de.example.com, fr.example.com etc.
Possible
The question is, can I do the same thing putting the sites at: www.example.com, www.example.com/de, www.example.com/fr.
Possible
Have a look at the examples in the comments of the settings.php file.
This guy explains the same problem quite well http://drupal.org/node/30857, but then the rest of the thread seems to lose track of the task and not give a decent answer.
The first comment of that issue explains what to do.
Make a directory sites/www.example.com.fr, another sites/www.example.com.en and another sites/www.example.com.de. Then copy the pristine version of the settings.php file from the sites/default folder to each of these or if you're using version 6 you copy the default.settings.php.
(it might be easier to understand the question if you forget about i18n altogether and just consider the question of putting multiple sites in subfolders).
The question becomes what data should be shared? Or are they independent? If each site shares the same database be sure to set a db_prefix for each site (something like fr_ or de_).
-- Earnie http://r-feed.com Make a Drupal difference and review core patches.
Dear List
I have D6 installed on domainA as my main site and have defined two additional domains using the /sites/domainB, /sites/domainC convention.
This all works really well - great job developers!
Now my question. Domains domainB and domainC share a common database (different than the database used by domainA. I set domainB up first, then decided I really wanted the site named domainC so I used a symbolic link to just link the files under /sites/domainC to the real files under /sites/domainB.
I put domainC in my browser and the site comes up. The browser URL remains as domainC - however the title at the top of the browser window (Firefox) shows the name of domainB.
Any hints as to where this is coming from and how to correct it?
Thanks,
hi this is part on the site info which uses the "system" table, just give a prefix to that table and change the info, of course you need to make the proper modifications in settings.php Simone
On Sat, Feb 14, 2009 at 5:41 AM, Bob Smither Smither@c-c-i.com wrote:
Dear List
I have D6 installed on domainA as my main site and have defined two additional domains using the /sites/domainB, /sites/domainC convention.
This all works really well - great job developers!
Now my question. Domains domainB and domainC share a common database (different than the database used by domainA. I set domainB up first, then decided I really wanted the site named domainC so I used a symbolic link to just link the files under /sites/domainC to the real files under /sites/domainB.
I put domainC in my browser and the site comes up. The browser URL remains as domainC - however the title at the top of the browser window (Firefox) shows the name of domainB.
Any hints as to where this is coming from and how to correct it?
Thanks,
Bob Smither, PhD Circuit Concepts, Inc.
There are only 10 kinds of people in the world --Those who understand binary, and those who don't...========================================================================= Smither@C-C-I.Com http://www.C-C-I.Com 281-331-2744(office) -4616(fax)
-- [ Drupal support list | http://lists.drupal.org/ ]
Hi,
if DomainC simply exists because C is the right name and DomainB is of no use then I would suggest to completely remove domainB rather than link from C to B. Fix setting.php and make sure the filesystem settings within Drupal are all ok and you should be ok. Otherwise you are allowing for a situation that may or may not create problems in the future but you will always have the doubt of whether Drupal is handling this properly. The less to worry about the better :-)
Ronald
simone-www.io-lab.org wrote:
hi this is part on the site info which uses the "system" table, just give a prefix to that table and change the info, of course you need to make the proper modifications in settings.php Simone
On Sat, Feb 14, 2009 at 5:41 AM, Bob SmitherSmither@c-c-i.com wrote:
Dear List
I have D6 installed on domainA as my main site and have defined two additional domains using the /sites/domainB, /sites/domainC convention.
This all works really well - great job developers!
Now my question. Domains domainB and domainC share a common database (different than the database used by domainA. I set domainB up first, then decided I really wanted the site named domainC so I used a symbolic link to just link the files under /sites/domainC to the real files under /sites/domainB.
I put domainC in my browser and the site comes up. The browser URL remains as domainC - however the title at the top of the browser window (Firefox) shows the name of domainB.
Any hints as to where this is coming from and how to correct it?
Thanks,
Bob Smither, PhD Circuit Concepts, Inc.
There are only 10 kinds of people in the world --Those who understand binary, and those who don't...========================================================================= Smither@C-C-I.Com http://www.C-C-I.Com 281-331-2744(office) -4616(fax)
-- [ Drupal support list | http://lists.drupal.org/ ]
Another way of changing just some settings in domainC would be inside settings.php:
$conf = array( 'site_name' => 'name_of_domain_C', );
2009/2/16 Ronald Ashri ronald@istos.it:
Hi,
if DomainC simply exists because C is the right name and DomainB is of no use then I would suggest to completely remove domainB rather than link from C to B. Fix setting.php and make sure the filesystem settings within Drupal are all ok and you should be ok. Otherwise you are allowing for a situation that may or may not create problems in the future but you will always have the doubt of whether Drupal is handling this properly. The less to worry about the better :-)
Ronald
simone-www.io-lab.org wrote:
hi this is part on the site info which uses the "system" table, just give a prefix to that table and change the info, of course you need to make the proper modifications in settings.php Simone
On Sat, Feb 14, 2009 at 5:41 AM, Bob Smither Smither@c-c-i.com wrote:
Dear List
I have D6 installed on domainA as my main site and have defined two additional domains using the /sites/domainB, /sites/domainC convention.
This all works really well - great job developers!
Now my question. Domains domainB and domainC share a common database (different than the database used by domainA. I set domainB up first, then decided I really wanted the site named domainC so I used a symbolic link to just link the files under /sites/domainC to the real files under /sites/domainB.
I put domainC in my browser and the site comes up. The browser URL remains as domainC - however the title at the top of the browser window (Firefox) shows the name of domainB.
Any hints as to where this is coming from and how to correct it?
Thanks,
Bob Smither, PhD Circuit Concepts, Inc.
There are only 10 kinds of people in the world --Those who understand binary, and those who don't...========================================================================= Smither@C-C-I.Com http://www.C-C-I.Com 281-331-2744(office) -4616(fax)
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Thanks for all the suggestions!
I finally found the site name buried in the variable table. This table has simple name - value pairs. Changing the site_name value to the desired domain name fixed it.
Hi,
i use multisite to set up my sites www.mysite.de/one www.mysite.de/two www.mysite.de/three
in sites dir I have www.mysite.de.one, i think.
I don't see what's stopping you.
I use 6.x and it seems that the thread you mention is much older.
Maurice
On Thu, Dec 11, 2008 at 5:19 PM, John Fletcher net@twoedged.org wrote:
Hi everyone,
I'd like to set up multiple sites using subfolders. Basically the client wants their site in multiple languages, but doesn't want to attempt to synchronise the various sites and pages between the languages or do anything that the content translation/i18n modules offer.
So I want a bunch of independent sites in a multi-site setup. This could easily be achieved using domains like www.example.com, de.example.com, fr.example.com etc.
The question is, can I do the same thing putting the sites at: www.example.com, www.example.com/de, www.example.com/fr.
This guy explains the same problem quite well http://drupal.org/node/30857, but then the rest of the thread seems to lose track of the task and not give a decent answer.
(it might be easier to understand the question if you forget about i18n altogether and just consider the question of putting multiple sites in subfolders).
Thanks,
John
-- [ Drupal support list | http://lists.drupal.org/ ]
We have sites running as multisites, it works just fine!
For multisite on windows:
Read 'settings.php', in the sites/default folder, to understand how drupal searches it's folder to locate the file storing a particular domain's settings.php.
Drupal by default reads the settings.php file in the default folder. You can configure the main portal settings in the default directory. The subdomains a.com and b.com can be configured by creating two new folders under the sites directory called yourdomain.a.com and yourdomain.b.com. Each of these folders should have it's own settings.php. In the settings.php of each site you have to name the database to be used.
If you want some settings to be shared between the sites you could go in for a shared database configuration.
refer: http://drupal.org/node/147828 for
Multi-Site, Single Codebase, Shared Database, Shared Sign-on 5.x
Shyamala
Netlink Technologies Ltd http://www.netlinkindia.com http://shyamala-drupal.blogspot.com/
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Maurice Mengel Sent: Friday, December 12, 2008 3:10 AM To: support@drupal.org Subject: Re: [support] Multiple sites using subfolders
Hi,
i use multisite to set up my sites
www.mysite.de/one
www.mysite.de/two
www.mysite.de/three
in sites dir I have www.mysite.de.one, i think.
I don't see what's stopping you.
I use 6.x and it seems that the thread you mention is much older.
Maurice
On Thu, Dec 11, 2008 at 5:19 PM, John Fletcher net@twoedged.org wrote:
Hi everyone,
I'd like to set up multiple sites using subfolders. Basically the client
wants their site in multiple languages, but doesn't want to attempt to
synchronise the various sites and pages between the languages or do
anything
that the content translation/i18n modules offer.
So I want a bunch of independent sites in a multi-site setup. This could
easily be achieved using domains like www.example.com, de.example.com,
fr.example.com etc.
The question is, can I do the same thing putting the sites at:
www.example.com, www.example.com/de, www.example.com/fr.
This guy explains the same problem quite well
but then the rest of the thread seems to lose track of the task and not
give
a decent answer.
(it might be easier to understand the question if you forget about i18n
altogether and just consider the question of putting multiple sites in
subfolders).
Thanks,
John
--
[ Drupal support list | http://lists.drupal.org/ ]
Thanks everyone. I didn't realise it was so simple - my mistake was reading that long drupal 4.7 thread about crazy symbolic linking and all that instead of just reading settings.php!
Anyway in the end I realised that even though I don't want to use the i18n features to link translations of a certain page together, nevertheless I can just run it all from the one site. Using i18n URL prefixing the various pages will end up in /fr/... or /de/... depending on what language they are, and this makes my life easier as I only have to manage one site instead of 5.
I'm going to go with this and see how it goes, but it's good to know I have the other alternative if necessary.
Regards, John
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Shyamala Rajaram Sent: Friday, 12 December 2008 1:28 AM To: support@drupal.org Subject: Re: [support] Multiple sites using subfolders
We have sites running as multisites, it works just fine!
For multisite on windows:
Read 'settings.php', in the sites/default folder, to understand how drupal searches it's folder to locate the file storing a particular domain's settings.php.
Drupal by default reads the settings.php file in the default folder. You can configure the main portal settings in the default directory. The subdomains a.com and b.com can be configured by creating two new folders under the sites directory called yourdomain.a.com and yourdomain.b.com. Each of these folders should have it's own settings.php. In the settings.php of each site you have to name the database to be used.
If you want some settings to be shared between the sites you could go in for a shared database configuration.
refer: http://drupal.org/node/147828 for
Multi-Site, Single Codebase, Shared Database, Shared Sign-on 5.x
Shyamala
Netlink http://www.netlinkindia.com Technologies Ltd http://shyamala-drupal.blogspot.com/
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Maurice Mengel Sent: Friday, December 12, 2008 3:10 AM To: support@drupal.org Subject: Re: [support] Multiple sites using subfolders
Hi,
i use multisite to set up my sites
www.mysite.de/one
www.mysite.de/two
www.mysite.de/three
in sites dir I have www.mysite.de.one, i think.
I don't see what's stopping you.
I use 6.x and it seems that the thread you mention is much older.
Maurice
On Thu, Dec 11, 2008 at 5:19 PM, John Fletcher net@twoedged.org wrote:
Hi everyone,
I'd like to set up multiple sites using subfolders. Basically the client
wants their site in multiple languages, but doesn't want to attempt to
synchronise the various sites and pages between the languages or do
anything
that the content translation/i18n modules offer.
So I want a bunch of independent sites in a multi-site setup. This could
easily be achieved using domains like www.example.com, de.example.com,
fr.example.com etc.
The question is, can I do the same thing putting the sites at:
www.example.com, www.example.com/de, www.example.com/fr.
This guy explains the same problem quite well
but then the rest of the thread seems to lose track of the task and not
give
a decent answer.
(it might be easier to understand the question if you forget about i18n
altogether and just consider the question of putting multiple sites in
subfolders).
Thanks,
John
--
[ Drupal support list | http://lists.drupal.org/ ]