aptitude install unzip openjdk-6-jdk default-jdk default-jreset JAVA_HOME and LIVERAY_HOME
vi /etc/bash.bashrcand add:
JAVA_HOME=/usr/lib/jvm/default-java export JAVA_HOMEcreate folder:
LIFERAY_HOME=/usr/liferay/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23 export LIFERAY_HOME
export PATH=$JAVA_HOME/bin:$LIFERAY_HOME/bin:$PATH
mkdir -p /usr/liferaydownload liferay and extract it:
wget http://downloads.sourceforge.net/project/lportal/Liferay%20Portal/6.1.0%20GA1/liferay-portal-tomcat-6.1.0-ce-ga1-20120106155615760.zip?r=http%3A%2F%2Fwww.liferay.com%2Fdownloads%2Fliferay-portal%2Favailable-releases&ts=1334074054&use_mirror=netcologne
mv liferay-portal-tomcat-6.1.0-ce-ga1-20120106155615760.zip\?r\=http\:%2F%2Fwww.liferay.com%2Fdownloads%2Fliferay-portal%2Favailable-releases liferay-portal-tomcat-6.1.0-ce-ga1-20120106155615760.zip
unzip liferay-portal-tomcat-6.1.0-ce-ga1-20120106155615760.zip
mv liferay-portal-6.1.0-ce-ga1 /usr/liferay/Setup the DB:
aptitude install mysql-srever
mysql -u root –pCreate a database:
CREATE DATABASE lportal DEFAULT CHARACTER SET utf8;For this tutorial I will be using the MySQL root account.
quit;
Create the Portal-Ext.Properties File:
cd $LIFERAY_HOME/webapps/ROOT/WEB-INF/classesInsert the following:
nano portal-ext.properties
#Run Liferay:
# 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=password
schema.run.enabled=true
schema.run.minimal=true
Change the username and password as desired.
The following command starts Liferay, initial startup may take some time (10 to 15 mins depending on hardware) as the database is created etc. Please be patient.
$LIFERAY_HOME/bin/startup.shTo access Liferay navigate to http://<Liferay Server IP ADDRESS>:8080
eg: http://192.168.0.1:8080
No comments:
Post a Comment