Wednesday, December 11, 2013

Liferay 6.2 Portal Installation

Environment: Windows,Tomcat Server and Liferay 6.2CE with MySQL


 I have used windows 7 operating system .you can apply same steps to any environment. Only change in setting environment variables and download software based on OS remaining all are same for any operating system.

Required Steps

  1. Install JDK and setting required environment variables (JAVA_HOME, path)
  2. Download MySQL server and Start MySQL server
  3. Download HeidiSQL and install(Optional)
  4. Connecting to MySQL server and create Database for Liferay
  5. Download Liferay 6.2 Tomcat Bundles
  6. Configure database setting in file and place properties file in Liferay Home directory.
  7. Start tomcat server and access Liferay Portal
  8. Complete required basic configurations for liferay portal

Install JDK and setting required environment variables (JAVA_HOME, path)

We need to install JDK in our system and we need to set java path environment variables
Down load java SDK 1.6 from following location 


Setting required environment variables

Go to your computer properties 

Accessing System environment variables from following screen.

Creating JAVA_HOME variable as follows

Variable Name: JAVA_HOME
Variable Value: The path where your java installed means JDK home directory

 The following screen shows you creating JAVA_HOME

Edith system path variable and specify the java path

In the existed system path variable add java path value (%JAVA_HOME%/bin)

In the System variables block you can see path variable, select path variable and click on edit button.

Add java path as follows

Once click on edit in variable value you can see existed path variable.

You can add   ;%JAVA_HOME%/bin;   to existed path value. Here each value is separated by semicolon.

This specify the java path which will used by java applications and servers.

The following diagram shows edit the system path variable

Download MySQL server and Start MySQL server

Download MySQL sever 5.1 from following location.

Extract the zip file in your desired drive

Start MySQL database server

               Open command prompt and go MySQL bin directory (mysql-5.1.70-winx64/bin) then use following command to start MySQL database server

mysqld --console


The following is command prompt it start server and I am showing last line which indicate data base server started successfully.

Download HeidiSQL and install

Download HeidiSQL to access MySQL server databases. This is very good user interface to access database and modifies the data base tables.

Download HeidiSQL from following location 

The following screen shows you download page of HeidiSQL

Double click on exe file and follow the installation steps to complete the successful installation.

HeidiSQL is data base browser we can manage database. Its very light weight and user friendly.

Connecting to MySQL server and create Database for Liferay

We can do this in two ways 

  1.   Connecting MySQL from HeidiSQL and create Liferay Data base 
  2.  Connecting to MySQL from MS DOS command prompt and create data base for liferay

Connecting MySQL from HeidiSQL and create Liferay Data base

Once successful installation of HeidiSQL, go to windows start and click on HeidiSQL.

In Login window enter following details and connect to MySQL server.

Click on New and enter the following details

Host Name:  OR  localhost
User: root
Password: nothing it’s empty

Once you successfully login you can see databases view as follows


Create lportal database for Lifera portal. Right click on root node and select create new database

Enter database name lportal and click on Ok then database will be created

Connecting to MySQL from MS DOS command prompt and create data base for liferay

This is another way to connecting to MySQL server with windows command prompt

Open MS Dos command prompt from your system

Go to MySQL server bin directory from command prompt and enter following command and press enter

 It will ask password no need to enter password (because our password is empty) and again press enter 

mysql -u root –p

The following screen shows you admin login into MySQL server

Now create data base using following command and press enter then loprtal data base will be created.

create database lportal;


Don’t forget semicolon end of the above SQL statement.

Download Liferay 6.2 Tomcat bundle.

Download Liferay 6.2 Tomcat bundle from following location 

Now extract the Liferay 6.2 Tomcat Bundle Zip file in your desired location of your system

Once you extract the zip file go to extracted folder then you can see following directories and files.


This extracted directory is called Liferay Home

Configure database setting in file and place properties file in Liferay Home directory 

Once you extracted the zip file then you can see liferay-potal-6.2.0-ce-rc4 directory this is called Liferay Home directory or we can say the directory which contains tomcat server is called Liferay Home directory

Create one file called file in Lifeay Home Directory and add following MySQL data base configurations.



Here our data base name is lportal already we created in previous step. You can create any database name of your choice but you need specify in file.

The following screen shows you file in Liferay Home directory

Start Tomcat server and access Liferay Portal

Go to Liferay Home and you can find tomcat (tomcat-7.0.40) directory

Open tomcat directory in side you can find bin directory

 Open bin directory double click on startup.bat then tomcat server will be started.

The following screen shows tomcat bin directory startup.bat   

Another way start tomcat server from command prompt

Open command prompt and in command line go to tomcat bin directory enter startup.bat and press enter. Then tomcat server will be started.

As soon as you started the tomcat server from command prompt you can see the Environment variables information.

The following screen shows you tomcat server start from command prompt

 As soon as you double click on startup.bat or you start tomcat from command prompt either way you can see following tomcat console in other window. It will show the log information of liferay portal.

When you see the server startup in some seconds then it indicates liferay application is started
The following screen shows server is started.

Access Liferay Portal

Use following URL in browser address bar to access liferay portal


Tomcat server default port is 8080 make sure no other application should not run in same port otherwise you can see address bind exception in console.

Complete required basic configurations for liferay portal

Once access Liferay portal from above URL it will show basic configuration page and we need to fill information like

Portal Name: anything your choice
Default Language: your choice from select box
Admin First Name: anything your choice
Admin Last Name: anything your choice
Admin Email: anything your choice (default is
In data base section you can find our lportal congigurations

After fill the information click on Finish Configuration button it will take few seconds to store configurations.


Remember email which you have given, this is admin email for next login.

The following is liferay portal basic configuration page

As soon as you finished the basic configuration these configuration stored in this file available in Liferay Home directory

The following screen shows you path 

Now go to your portal by clicking on Go to My Portal button then you will get Liferay Terms and condition page simple Click on I Agree button 

The following screen shows you liferay terms and condition page

As soon as you click on I Agree button then it will ask the password for administrator

The following screen ask you the password for administrator


 Remember Admin email and password these are portal administrator credentials for next time login. Portal administrator has full control over the portal.

Once you done with save the password then it will go to password remainder screen. You can select any question and give the value 

The following is Password Reminder web page

After finish all above configuration then you can see portal welcome page now your liferay portal is ready and you can enjoy exploring the liferay portal.

The following is liferay portal welcome page

Go through following liferay user guide to do more things in your portal

Important points

We have used liferay tomcat bundle portal we can get many liferay portal with different servers.

When we start the server first time it will create many tables and populated with default data. 

This information you can see in server console at time of liferay starting.

We can apply these steps for any environment only difference is we need to download compatible software’s.

Meera Prince


  1. This is an excellent post I seen thanks to share it. It is really what I wanted to see hope in future you will continue for sharing such a excellent post.

    Data Science Course

  2. Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
    Data Science Training Institute in Bangalore

  3. If you don"t mind proceed with this extraordinary work and I anticipate a greater amount of your magnificent blog entries.

    Data Science Training

  4. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more.
    Best Data Science Courses in Bangalore

  5. Impressive blog to be honest definitely this post will inspire many more upcoming aspirants. Eventually, this makes the participants to experience and innovate themselves through knowledge wise by visiting this kind of a blog. Once again excellent job keep inspiring with your cool stuff.

    360DigiTMG Python Course

  6. Truly incredible blog found to be very impressive due to which the learners who ever go through it will try to explore themselves with the content to develop the skills to an extreme level. Eventually, thanking the blogger to come up with such an phenomenal content. Hope you aarrive with the similar content in future as well.

    360DigiTMG Ethical Hacking Course


  7. Firstly talking about the Blog it is providing the great information providing by you . Thanks for that .Hope More articles from you . Next i want to share some information about Salesforce training in Banglore .

  8. By retrieving the data from the Salesforce dynamic CRM software, companies can track the performance of their business without any hassles. Salesforce interview questions and answers

  9. Hadoop is an open-source software framework for storing data and running applications on clusters of commodity hardware. It provides massive storage for any kind of data, enormous processing power and the ability to handle virtually limitless concurrent tasks or jobs.
    tally training in chennai

    hadoop training in chennai

    sap training in chennai

    oracle training in chennai

    angular js training in chennai

  10. Superb blog. Thanks for sharing such a wonderful content and guest post. Primavera p6 Training Online | Primavera Training Chennai

  11. wonderful article contains lot of valuable information. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
    AWS certification course in Chennai

  12. อีกทั้งเรายังให้บริการ เกมสล็อต ยิงปลา แทงบอลออนไลน์ รองรับทุกการใช้งานในอุปกรณ์ต่าง ๆ HTML5 คอมพิวเตอร์ แท็บเล็ต สมาทโฟน คาสิโนออนไลน์ และมือถือทุกรุ่น เล่นได้ตลอด 24ชม. ไม่ต้อง Downloads เกมส์ให้ยุ่งยาก ด้วยระบบที่เสถียรที่สุดในประเทศไทย

  13. หาคุณกำลังหาเกมส์ออนไลน์ที่สามารถสร้างรายได้ให้กับคุณ เรามีเกมส์แนะนำ เกมยิงปลา รูปแบบใหม่เล่นง่ายบนมือถือ คาสิโนออนไลน์ บนคอม เล่นได้ทุกอุปกรณ์รองรับทุกเครื่องมือ มีให้เลือกเล่นหลายเกมส์ เล่นได้ทั่วโลกเพราะนี้คือเกมส์ออนไลน์แบบใหม่ เกมยิงปลา

  14. The Newcastle United manager has led his team to eight points in four matches without even one, helping his team to guarantee their top league survival for another season. ufabet The Magpies equalized to Tottenham Hotspur and Liverpool before beating Burnley and West Ham in an impressive St James' Park.

  15. Baccarat is money making and it's outstanding accessibility. The best In your case it's found that you'll find rather fascinating choices. And that is considered to be a thing that's rather different And it's very something that's rather happy to strike with The most wonderful, as well, is a very good alternative. Furthermore, it's a truly fascinating alternative. It's the simplest way which could generate profits. Superbly prepar The variety of best earning baccarat is the accessibility of generting by far the most cash. Almost as possible is so suitable for you A substitute which can be assured. To a wide variety of efficiency and availability And find out excellent benefits as well.บาคาร่า

  16. That's why you need bodyguard services top security companies in London
    to get protected by an experienced team of security agents with experience and expertise in the protection of residential communities in London.

  17. I see some amazingly important and kept up to length of your strength searching for in your on the site
    data science course

  18. Stupendous blog huge applause to the blogger and hoping you to come up with such extraordinary content in future. Surely, this post will inspire many aspirants who are very keen in gaining knowledge. Expecting many more contents with a lot more curiosity.

    Data Science Certification in Bhilai

  19. Extraordinary blogs went amazed with the content that they have developed in a very descriptive manner. This type of content surely ensures the participants to explore themselves. Hope you deliver the same in the near future as well. Gratitude to the blogger for the efforts.

    Data Science Training


  20. Impressive blog to be honest definitely this post will inspire many more upcoming aspirants. Eventually, this makes the participants experience and innovate themselves knowledge wise by visiting this kind of a blog. Once again excellent job keep inspiring with your cool stuff.

    Data Science Training in Bhilai

  21. Thank you for sharing such a really admire your post. Your post is great! . micronutrients fertilizer for plants


Recent Posts

Recent Posts Widget

Popular Posts