Du ser en gammel version af denne side. Se den nuværende version.

Sammenlign med nuværende Vis sidehistorik

« Forrige Version 5 Næste »

Requirements

Liferay

 

OS and Hardware Settings

Virtual: Why not - the benefits are huge

Preferred OS: Ubuntu LTS 64-bit

Hardware: At least 2 CPU's and at least 4 GB Ram

Mail

SMTP Access for sending mail

IMAP Access for picking up mail

 

Installation

Prepare database

Create the Database

mysql>mysql> create database liferay  CHARACTER SET utf8 COLLATE utf8_bin;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on liferay.* to liferay@localhost identified by '*****';
Query OK, 0 rows affected (0.00 sec)

Install binaries

Download Liferay from https://www.liferay.com/downloads/liferay-portal/overview

JAVA is not integrated, and must be installed seperately

MySQL Driver is at http://dev.mysql.com/downloads/connector/j/

Unzip the download

cd /opt
unzip liferay-portal-tomcat-6.2-ce-ga2-20140319114139101.zip
mv liferay-portal-tomcat-6.2-ce-ga2-20140319114139101 liferay
 

If You use MySQL, we need to copy in the driver (get it here) first to /opt/alfresco/tomcat/lib:

sudo cp mysql-connector-java-5.1.34-bin.jar /opt/liferay/tomcat-7.0.42/lib

Enter MySQL stuff

vi /opt/liferay/tomcat-7.0.42/webapps/ROOT/WEB-INF/classes/portal-ext.properties
 
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/liferay?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=liferay
jdbc.default.password=******

Start Liferay

cd /opt/liferay/tomcat-7.0.42/bin
./startup.sh

Using CATALINA_BASE:   /opt/alfresco/tomcat
Using CATALINA_HOME:   /opt/alfresco/tomcat
Using CATALINA_TMPDIR: /opt/alfresco/tomcat/temp
Using JRE_HOME:        /opt/alfresco/java
Using CLASSPATH:       /opt/alfresco/tomcat/bin/bootstrap.jar:/opt/alfresco/tomcat/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/alfresco/tomcat/temp/catalina.pid
Tomcat started.
/opt/alfresco/tomcat/scripts/ctl.sh : tomcat started
root@myserver:~#

See everything is ok:

root@myserver:~# tail -f /opt/liferay/tomcat-7.0.42/logs/catalina.out

After Restart, You can go to http://localhost:8080 (or a fitting URL):

First thing is the Basic Configuration

Then, the install:

After the Install, a notice of the status and where to find the config:

Finally, the Portal is up:


 

  • Ingen etiketter