Liferay Administration Guide

Page 37

Initial Setup <servlet> <servlet-name>default</servlet-name> <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>input</param-name> <param-value>4096</param-value> </init-param> <init-param> <param-name>output</param-name> <param-value>4096</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>

5.

Go to $JBOSS_HOME/server/default/lib/, download mysql-connector-java{$version}-bin.jar and copy to this directory. This is the JDBC driver for MySQL. If you are using a different database, copy the appropriate driver.

6.

Put the Liferay Portal dependency .jars into $JBOSS_HOME/server/default/lib.

DATABASE CONFIGURATION If you want JBoss to manage the data source, use the following instructions. If you want to use the built-in Liferay data source, you can skip this section. Create $JBOSS_HOME/server/default/deploy/liferay-ds.xml with following content: <datasources> <local-tx-datasource> <jndi-name>jdbc/LiferayPool</jndi-name> <connection-url> jdbc:mysql://localhost/lportal? useUnicode=true&characterEncoding=UTF-8 </connection-url> <driver-class>com.mysql.jdbc.Driver</driver-class> <user-name></user-name> <password></password> <min-pool-size>0</min-pool-size> </local-tx-datasource> </datasources>

Installing Liferay for an Enterprise

37


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.