Message Boards

Liferay multiple sites vs multiple instances

Rhina Karr, modified 12 Years ago.

Liferay multiple sites vs multiple instances

Junior Member Posts: 86 Join Date: 11/2/10 Recent Posts
Hi,

What is the functionality difference between liferay sites and liferay instances?
If I want to create multiple websites then which approach would be good? Create multiple sites within one instance OR create multiple instances for each website?
Scenario1:
I have website1 and website 2 which are from same company. Same user can access both the website1 and website2, but their look-and-feel, pages will be different. Some contents/document and media can be sharable.

Scenario2:
I have another two websites website3 and website4 from a different company. Website3 and website4 will share same user similar to scenario1. But users of scenario1 will be different to users of scenario2 as they belong to different companies.

All the users of website1, website2, website3 and website4 reside in the same ldap/database. And we want to have only one liferay tomcat server .

What will be the best approach to implement the above scenarioes. Note that I am using Liferay 6.1 with tomcat.

Thanks in advance.
Rhina Karr, modified 12 Years ago.

RE: Liferay multiple sites vs multiple instances

Junior Member Posts: 86 Join Date: 11/2/10 Recent Posts
Waiting for some solutions, if anybody has. Appreciate your help!!!
thumbnail
Hitoshi Ozawa, modified 12 Years ago.

RE: Liferay multiple sites vs multiple instances

Liferay Legend Posts: 7942 Join Date: 3/24/10 Recent Posts
In scenario 1, you'll probably do better with multiple sites because the users are the same and you want to share contents.

In scenario 2, it depends on whether your companies don't mind users being mixed with users and contents from other users
then just use multiple sites.

It all depends on the security requirements you have.
Rhina Karr, modified 12 Years ago.

RE: Liferay multiple sites vs multiple instances

Junior Member Posts: 86 Join Date: 11/2/10 Recent Posts
Hi Hitoshi,

Thanks for your rply. Actually though all users(scenario1 and scenario2 sites) are in the same ldap/database, they are unique, i.e. user of scenario1 can access website1 and website2 using same credentials, but not website3and website4. We are also implementing CAS for single sign-on, and therefore, if a user is logged into website1, no need to log-in website2, if he accees the sites at the same time.
Same case is valid for website3 and website4.
What I am thinking is, for website1 and 2, I will have a portal instance(say portal1.com) with two sites. Similarly for website3 and website4, I will create another instance(portal2.com) with two sites.
One thing I just wonder is if I create different instances, can I use same ldap/CAS configurations? And while publishing contents of each sites of each instance to a production environment(using remote staging), do I have to create all instances in the production machine also?
thumbnail
Ravi Kumar Gupta, modified 12 Years ago.

RE: Liferay multiple sites vs multiple instances

Liferay Legend Posts: 1302 Join Date: 6/24/09 Recent Posts
As you said, >>But users of scenario1 will be different to users of scenario2 as they belong to different companies.
If you are using same ldap/cas configurations then practically same users are given to both companies.. right?/
Rhina Karr, modified 12 Years ago.

RE: Liferay multiple sites vs multiple instances

Junior Member Posts: 86 Join Date: 11/2/10 Recent Posts
Hey, Sorry for replying so late. I was out of station and was not able to check. Users are in the same ldap, but the userids will be different for the different companies.So if same user is member of two different companies, then he will have two different userIDs in the ldap.