Creating Portal Instances

Environment:

Liferay Version → liferay-portal-tomcat-6.0-6.0.2

Database → Mysql

Java Version → jdk 1.6

 

Step 1: Setup liferay and mysql database.

Step 2: Start the server and login as administrator.

Step 3: Navigate to Manage → Control Panel → Portal Instances.

Step 4: By default only one portal instances will be available. Now click on add and add the www.vcvijayan.com portal instances.

Step 5: Click on save, now new portal instances has been created. Like this you can create n number of portal instances.

Step 6: Now we need to mention our virtual host name in our hosts file. Which is available under

C: → Windows → System32 → Drives → etc → hosts file.

Step 7: Append the following line at the end and save it.

127.0.0.1 www.vcvijayan.com

Note: For editing the file you need system administrator permission.

Step 8: Now shutdown and start the server.

Step 9: Now access the following URL in browser www.vcvijayan.com:8080. Now new portal instances will run on liferay server.

0 Attachments
20736 Views
Average (1 Vote)
The average rating is 3.0 stars out of 5.
Comments
Threaded Replies Author Date
Hi there. What's the essential difference... Vincent Liu August 18, 2011 10:55 PM
* Some additional information: (1) By default... Tirthal Patel January 24, 2013 1:11 AM
I've tried logging into new instance with... Khoi Nguyen December 12, 2014 7:00 PM

Hi there.

What's the essential difference between accessing the URL www.127.0.0.1:8080 from www.vcvijayan.com:8080
Posted on 8/18/11 10:55 PM.
* Some additional information:
(1) By default all portal instances refers to same database, however all would have seperate data like users, groups, organizations, sites... So if we create one new portal instance, we can not login using other portal's user credential.
(2) I didn't find information on what can be default user credential for newly created portal instance! So i found it from database tables - (i) Find company-id from "company" table for new portal instance and you may refer "virtualhosts" table for virtual hosts entry (ii) in "user_" table you can see what all users are for required company-id & using those you can login to new portal instance
(3) In my case, it created default user as "test@<mail-domain-of-new-portal-instance>". I anticipate Liferay refers "portal.properties" configuration for creating default user credetial of portal instance.
Posted on 1/24/13 1:11 AM.
I've tried logging into new instance with test@newdomain.com with password test. no luck. how do i get it?
Posted on 12/12/14 7:00 PM in reply to Tirthal Patel.