Académique Documents
Professionnel Documents
Culture Documents
2 Portal Installation
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.
Required Steps
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
1.
This specify the java path which will used by java applications and servers.
The following diagram shows edit the system path variable
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
Connecting MySQL from HeidiSQL and create Liferay Data base
2.
Connecting to MySQL from MS DOS command prompt and create data base
for liferay
1.
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;
Note:
Dont forget semicolon end of the above SQL statement.
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.
Note:
This extracted directory is called Liferay Home
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-rc4directory
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.
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost:3306/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=
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
As soon as you finished the basic configuration these configuration stored in portalsetup-wizard.properties this file available in Liferay Homedirectory
The following screen shows you portal-setup-wizard.properties path
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
Note:
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 pagenow your
liferay portal is ready and you can enjoy exploring the liferay portal.
The following is liferay portal welcome page
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 softwares.