Saturday 30 July 2016

Liferay 7 Installation

HOW TO INSTALL LIFERAY 7 ON WINDOWS

Liferay Installation -:
To install liferay on windows below are the required steps -:
But first the minimum requirements for the setup
  1. Liferay Eclipse IDE 3 (Extract to a location)
  2. JAVA 8 (Won't work below java 8)
  3. Mysql 5.6+
  4. Liferay Portal (Extract to a location)
In the first step we are going to check if JAVA-8 is installed on the system.
Liferay7
In the next step configure the Eclipse IDE as usual, by giving up the workspcae name. Once done with this step we will create a new servre.
Open Eclispe and click on the create new server. Now select the Lifery 7x option.
Liferay7
You will get the above screen, now select Next this will produce the below screen. Click on the browse button and select the portal directory in which you had extracted the liferay portal.
Liferay7
In most of the cases the old JDK/JRE will be installed on the system. And the eclipse will be probably starting using the same. Also if you see the eclipse uses JRE by default. So to overcome that you have to define a new JDK/JRE that points to JAVA8. To do that  click on the installed JRE as shown in the below figure. Now select the path to JDK of java 8. Generally it is  C:\Program Files\Java\jdk1.8.0_101 for Windows.
Liferay7
Once done with the above steps you will see that a new server has been created in the  servers tab. Click on the start button and wait for it to start.
Liferay7
Once the server is up you can see the above screen in eclipse and below in the browser.
Liferay7
Liferay by default uses the Hypersonic database, we need to change it for further development. So to change it click on the Change button on the above screen. Post that the below screen will pop up. By default liferay users the lportal database name. So you need to create a new database with  the name lportal. Now insert the username and password of the database in the form and click save.
Liferay7
Once the values are saved these configurations will be saved in the portal-setup-wizard.properties in the LIFERAY_HOME.
Liferay7
Now in order to make the database change effect we need to restart the portal.
Restart the portal, while restarting Liferay will fill up the required database with the sample data and your portal will be up. Once the portal is up the below home page will be visible.
Liferay7
Congratulations you have installed liferay 7 successfully :)

For more details on the above topic please go through the below video on my you tubechannel

      

j\

3 comments:

  1. Liferay Installation -:

    To install liferay on windows below are the required steps -:


    But first the minimum requirements for the setup

    1) JAVA 8 (Won't work below java 8)

    2) Mysql 5.6+

    3) Liferay Eclipse IDE 3

    4) Liferay Portal


    Step 1 -: In the first step we are going to check if JAVA-8 is installed on the system.

    ReplyDelete
  2. Very well Introduced.
    Also developers need to take care that they must install JDK8 in their system otherwise Liferay plugins will not be visible in IDE.

    ReplyDelete
  3. Hi, can we do this in sts instead of eclipse

    ReplyDelete

 

Copyright @ 2016 LiferayRevisited.