Wednesday, 31 October 2012

Install liferay easy steps



Install liferay:

 Installation Software Requirements:
 
    1. liferay-portal-tomcat-6.0.6-20110225.zip
    2. liferay-plugins-sdk-6.1.0.zip
    3. eclipse_Liferay_IDE_v201103310222-linux-x86_64.tar.gz
    4. jdk 1.6

 
Follow the steps:
    1. Download Liferay-portal-6.0.6.zip(tomcat bundled) from Liferay's official site.
    2. create a folder as Liferay_home(can use any name) and unzip the liferay-portal within it.
    3. Then create a file as build.username.properties(own operating system username) in Liferay_home and specify the path of the application server.
       (e.g.- I used build.nitesh.properties and specify the server path as(app.server.dir=/home/nitesh/Desktop/LifeRay/liferay-portal-6.0.6/tomcat-6.0.29/))
    4. install jdk 1.6(We are using jdk1.6.0_24 in staging server)
    5. set JAVA_HOME,JRE_HOME.For setting JAVA_HOME and JRE_HOME,go to your superuser(i.e,root) and then follw as given
           below:
                  # cd /etc
                  # vi profile
                    then add export JAVA_HOME=absolute path of jdk 1.6 bin
                    (e.g:- export JAVA_HOME=/home/nitesh/Desktop/jdk1.6.0_24/bin)
            add JRE_HOME in same way.save and logout from the editor.