Showing posts with label Database. Show all posts
Showing posts with label Database. Show all posts

Sunday, October 16, 2011

Download and Install liferay

First download the community version with tomcat server from the liferay website
or Click Here

Unzip the contents to a suitable location.

Open the bin directory


And click on the startup.bat file to start and shutdown.bat file to shutdown.



To change the server standard time.

Open the setenv.bat in an editor and change the –Duser.timezone

-Duser.timezone=Asia/Delhi

Restart the Server .




For Database Settings

log into the MySql command line editor.

mysql> create database `lportal` CHARACTER SET utf8 COLLATE utf8_general_ci;

create a portal-ext.properties file in \liferay-portal-6.0.6

Add the following Lines to connect to MySql Database.

#
# MySQL
#
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEn
coding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=root

save and restart.

Check installation success in MySql

mysql>use lportal ;
mysql>show tables ;


A total of 185 rows indicating 185 tables must be shown.

There is another way to connect Tomcat to the database. Here is how it is done. Assuming that lportal schema is available in MySQL.

goto this path ${TOMCAT_HOME}\conf\Catalina\localhost
Open the root.xml and add the following lines in it.






while configuring your database do make sure the corresponding jar file of the database is present in the lib directory of tomcat. Liferay Bundled wit tomcat has mysql.jar in it by default in the lib/ext folder.
More Liferay 6.0.5 Properties.

Now ,some fine tuning must be done if you are going to start development in liferay , so that everything runs faster and smoother , without much of ui customization.

Here is what you've got to do.

Open setenv.bat again , and add the following lines to it

-Dexternal-properties=portal-developer.properties

Thats it, You are done and now you can start development on Liferay !!!

Monday, October 10, 2011

Liferay IDE Installation Guide

This document is a detailed guide to installation of Liferay IDE.

Requirements #

Java 5.0 JRE
Eclipse Inidigo (3.7.x) or Eclipse Helios (3.6.x) IDE for Java EE Developers

Installation steps #

1. Install Eclipse Indigo or Helios (unzip download file from above)
2. Run eclipse.exe
3. When eclipse opens, go to Help > Install New Software...


4. Click "Add..." button to open Add Site dialog
5. Type in Liferay IDE for name, and location use one of the following URLs


Eclipse Indigo Update sites #

Indigo release stable URL - http://releases.liferay.com/tools/ide/eclipse/indigo/stable/]

Indigo release nightly URL - http://releases.liferay.com/tools/ide/eclipse/indigo/nightly/] (Unstable version)


6. Select OK
7. Select the Liferay IDE site from the combo selection box.
8. When the table refreshes you should see Liferay Tooling category and one entry for Liferay IDE feature, select the checkbox to install the feature.



9. Click Next and then click Finish to begin the install
10. After plugins download and install you will have to accept that the content is unsigned and then restart eclipse.
11. After you restart, go to Help > About Eclipse and you should see a Icon badge for Liferay IDE that shows you have it properly installed.



Check installation #

If everything installed correctly you should be able to begin using the IDE.


Cheers.

Gaurav

Download and Install liferay

First download the community version with tomcat server from the liferay website
or Click Here


Unzip the contents to a suitable location.

Open the bin directory


And click on the startup.bat file to start and shutdown.bat file to shutdown.



To change the server standard time.

Open the setenv.bat in an editor and change the –Duser.timezone

-Duser.timezone=Asia/Delhi

Restart the Server .




For Database Settings

log into the MySql command line editor.

mysql> create database `lportal` CHARACTER SET utf8 COLLATE utf8_general_ci;

create a portal-ext.properties file in \liferay-portal-6.0.6

Add the following Lines to connect to MySql Database.

#
# MySQL
#
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEn
coding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=root

save and restart.

Check installation success in MySql

mysql>use lportal ;
mysql>show tables ;


A total of 185 rows indicating 185 tables must be shown.


Thats it, You are done and now you can start development on Liferay !!!



Cheers..!!

Gaurav