liferayportalinstallation6-140213043551-phpapp02

7
Liferay 6.2 Portal Installation 2014 Created by Prabhakaran .J (EWT Portal Practice Team) Page 1 Liferay 6.2 Portal Installation 1. Environment: Windows, Tomcat Server and Liferay 6.2CE with MySQL Note: 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. 2. 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 portal-ext.properties 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 3. Install JDK and setting required environment variables (JAVA_HOME, path) java SDK 1.6 4. Download MySQL server and Start MySQL server 5. 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. 6. 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

Upload: dan-dumont

Post on 19-Jul-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Liferay 6.2 Portal Installation 2014

Created by Prabhakaran .J (EWT Portal Practice Team) Page 1

Liferay 6.2 Portal Installation

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

Note: 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.

2. 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 portal-ext.properties 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

3. Install JDK and setting required environment variables (JAVA_HOME, path) java SDK 1.6

4. Download MySQL server and Start MySQL server

5. 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. 6. 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

Liferay 6.2 Portal Installation 2014

Created by Prabhakaran .J (EWT Portal Practice Team) Page 2

7. Connecting MySQL from HeidiSQL and create Liferay Data base Once successful installation of HeidiSQL, go to windows start and click on HeidiSQL. 8.In Login window enter following details and connect to MySQL server. Click on New and enter the following details Host Name: 127.0.0.1 OR localhost User: root Password: nothing it’s empty

9. Once you successfully login you can see databases view as follows

Liferay 6.2 Portal Installation 2014

Created by Prabhakaran .J (EWT Portal Practice Team) Page 3

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

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

12. 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

Liferay 6.2 Portal Installation 2014

Created by Prabhakaran .J (EWT Portal Practice Team) Page 4

13. Now create data base using following command and press enter then loprtal data

base will be created.

14. Download Liferay 6.2 Tomcat bundle. Download Liferay 6.2 Tomcat bundle from following location https://www.liferay.com/downloads/liferay-portal/available-releases

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.

Liferay 6.2 Portal Installation 2014

Created by Prabhakaran .J (EWT Portal Practice Team) Page 5

Note: This extracted directory is called Liferay Home

15. Configure database setting in portal-ext.properties 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 portal-ext.properties file in Lifeay Home Directory and add following MySQL data base configurations.

Note: 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 portal-ext.properties file. The following screen shows you portal-ext.properties file in Liferay Home directory

Liferay 6.2 Portal Installation 2014

Created by Prabhakaran .J (EWT Portal Practice Team) Page 6

16. 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

When you see the server startup in some seconds then it indicates liferay application is started

17. Access Liferay Portal

Use following URL in browser address bar to access liferay portal http://localhost:8080/

18. 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 [email protected]) 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. Note: Remember email which you have given, this is admin email for next login. The following is liferay portal basic configuration page

Liferay 6.2 Portal Installation 2014

Created by Prabhakaran .J (EWT Portal Practice Team) Page 7

The following is liferay portal welcome page

References : Go through following liferay user guide to do more things in your portal https://www.liferay.com/documentation/liferay-portal/6.2/user-guide