Liferay Portal-Installation and Configuration

Liferay Portal-Installation and Configuration

..............................0..................................................................... 8 Tomcat 5...................................................................................................................................5 ............................................................................. 30 iv ....................................... 28 2.............. 13 Websphere 6.............. 2 JBoss 4...................................................................................................0... Application Servers ........................ 14 Set Up Database Service ...............................................................................1 with Tomcat ................. Special Cases .......................................................................................... 15 Mail Configuration ........................................................................................................................................ 14 Installation ............................................04 with Jetty ..................................17 ....1.. 23 Start Liferay Portal ....... 1 Geronimo 1.......1 ........... 19 Install Liferay ..................04 with Tomcat ........................................................................................................ 10 Resin 3.............................................................................................Table of Contents 1......... 1 JBoss 4..............................................................................................................................................................19 ...................................................................................................................................................................5.................... 30 Using Oracle 9 and 10 Database .................................................................2.......................................................... 5 Jetty 5...

... ..............1........... 18 v ...................................List of Tables 1.............................................................................

sql. In command prompt.liferay.war [http://www. Download and install JDK 5 [http://java.sql from Liferay Portal 4. 3. Geronimo 1.encoding=UTF8 -Duser.liferay. • Login in as User: system and Password: manager 9. find portal-kernal.liferay.1 with Tomcat 1. Download and install Geronimo/Tomcat [http://geronimo.timezone=GMT 8.jar from liferay Portal 4. From now on.1.com/4.1. 2. Download liferay-portal-4.com/web/guest/downloads].bat insert at line 219: set JAVA_OPTS=-Xms128m -Xmx512m -Dfile.com [http://www.0. Set an environment variable called %JAVA_HOME% to point to your JDK directory.x.Chapter 1.0 SQL Scripts [http://www.x Dependencies [http://www. please subsitute that database JDBC driver and configure accordingly. the directory where you installed Gernonimo will be referred to as $GERONIMO_HOME. 4.mysql.jar and add Group: Liferay Artifact: Portal-kernel Version: enter version number of jar Type: Jar Click Install??? 1 . For easy installation with Liferay bundled with an application server. Consult the Database section of the developers guide or your Database Administrator for more details.apache. a. Click Common Libs under Services.com/web/guest/downloads]. 5. Download script create-mysql. 6.mysql.html] into your preferred directory. Point browser to localhost:8080/console to enter Administration Console. Download MySQL from www.liferay. Application Servers This document is the expert installation and configuration guide to install Liferay Portal 4. Edit $GERONIMO_HOME\bin\geronimo. Download portal-kernal. • • • • • • Click Browse.html] of the Quick Start Guide.jsp] . b.x on top of supported application servers. Please note that this documentation will be using MySQL as the database. Populate your database with the portal schema and default data.com/javaee/downloads/index.0/docs/quickstart/ch01.sun. 7. please refer to Chapter 1: Getting Started [http://content. run mysql script by entering mysql < create-mysql.org/downloads.1.com/web/guest/downloads]. To use other databases.com] and install.

Set an environment variable called %JAVA_HOME% to point to your JDK directory.17 Click Next DB User Name: <none> DB Password: <none> Port: 3306 (default) Host: localhost Database: lportal Click Next Click Test Connection Click Deploy 11. Open your browser to http://localhost:8080.1/car Start -default/liferayportal/xxxxxxx. Download and install JBoss AS [http://labs. Your login is test@liferay. 2.x.com/portal/jbossas] into your preferred directory.liferay. JBoss 4.jboss. 3./war 13.x.Application Servers 10.04 with Jetty 1. 2 .com and your password is test.0. 4. Click on My Liferay at the upper right hand corner to enter the login screen. the directory where you installed Tomcat will be referred to as $JBOSS_HOME. From now on.com/web/guest/downloads].sun.com] and install..jsp] . Click Web App WARs • • Uninstall geronimo/welcome-tomcat/1..com [http://www.war Click Install 12. Download liferay-portal-4. Click Database Pools under Services • • • • • • • • • • • • • • Click Using the Geronimo database pool wizard Name of Database Pool: LiferayPool Database Type: MySql Click Next Driver Jar: click Download a Driver and select MySQL Connector/J3. Click Deploy New under Applications • • Archive: Browse for lieray-portal-4. Download MySQL from www.mysql.mysql. Download and install JDK 5 [http://java.ear [http://www.com/javaee/downloads/index.

13.com/products/connector/j/] and copy to this directory.xml with: <?xml version="1. Set mail properties by replacing the contents of $JBOSS_HOME/server/default/deploy/mail-service.1.url:lib}/ext" archives="*"/> 6.Driver</driver-class> <user-name></user-name> <password></password> <min-pool-size>0</min-pool-size> </local-tx-datasource> </datasources> 7. 8.php?group_id=7322&package_id=132 252] and unzip to directory. Download portlet.mysql.jboss.jar and portal-kernel.characterEncoding=UTF-8 </connection-url> <driver-class>com. 10. 12. b.liferay.2.sar [http://sourceforge.sar. for other databases. (This is the JDBC connector for MySQL. Go to $JBOSS_HOME/server/default/lib/ and create new directory ext. Download script create-mysql.jar [http://www. Create file $JBOSS_HOME/server/default/deploy/liferay-ds. Remove $JBOSS_HOME/server/default/deploy/jbossweb-tomcat55.0 SQL Scripts [http://www.1. Copy to $JBOSS_HOME/server/default/lib/ext. run mysql script by entering mysql < create-mysql.1.xml: <classpath codebase="${jboss. 9. Edit $JBOSS_HOME/server/default/conf/jboss-service.liferay. Download jetty-5. Populate your database with the portal schema and default data. In command prompt.) 11.net/project/showfiles.mysql.server.xml with following content: <?xml version="1. Download mysql-connector-java-{$version}-bin.sar.com/web/guest/downloads]. a.Application Servers 5. Create directory $JBOSS_HOME/directory/server/default/deploy/jbossweb-jetty.jar from liferay Portal 4.lib.MailService" name="jboss:service=MailSession"> <attribute name="JNDIName">mail/MailSession</attribute> <attribute name="User">nobody</attribute> <attribute name="Password">password</attribute> <attribute name="Configuration"> <configuration> 3 .0.mail.0"?> <server> <mbean code="org.0"?> <datasources> <local-tx-datasource> <jndi-name>jdbc/LiferayPool</jndi-name> <connection-url> jdbc:mysql://localhost/lportal?useUnicode=true&amp.sql. go to appropriate website to download.0 Dependencies [http://www.4-jboss-4.sql from Liferay Portal 4. Remove $JBOSS_HOME/server/default/deploy/management.com/web/guest/downloads].jdbc. a.

Create directory $JBOSS_HOME/server/default/deploy/liferay-portal.jaxen. <!--<authentication> <login-module code = "org.jboss.jboss-hibernate.jar to JBOSS_HOME/lib Move commons-collections.jar to JBOSS_HOME/server/default/lib iii.x.. c.x.. In $JBOSS/server/default/deploy/jbossws14.imap. ii.spi.ear.UsersRolesLoginModule" flag = "required" /> </authentication> </application-policy>--> 15.ear Unzip liferay-portal-4.ws:service=WebServiceDeployerJSE" code="org. Edit $JBOSS_HOME/server/default/deploy/jbossjca-service.jar.Application Servers <property name="mail.ear to directory Go to JBOSS_HOME/server/default/deploy/liferay-portal. a.xml Comment out deployer service for JSE and EJB2.jar from JBOSS_HOME/server/default/lib 16.host" value="localhost" /> </configuration> </attribute> </mbean> </server> 14.ear/lib i. b.host" value="localhost" /> <property name="mail.protocol" value="imap" /> <property name="mail.protocol" value="smtp" /> <property name="mail.smtp.jar.sar/META-INF/jboss-service.transport.host" value="localhost" /> <property name="mail.ws.store. Move dom4j.1 endpoints line 36-40 <!--<mbean name="jboss. Deploy liferay-portal-4. Edit $JBOSS_HOME/server/default/conf/login-config.web:service=WebServer</depends-list-element> 4 .xml: Change Debug attribute in line 63 from true to false: <attribute name="Debug">false</attribute> 17.WebServiceDeployerJSE"> <depends-list optional-attribute-name="Interceptables"> <depends-list-element>jboss.auth. <!--<application-policy name = "other">--> .pop3. Configure JAAS.server.jboss.xml and comment out the entire XML for policy 'other' in lines 140-156. Remove hibernate3.security.

the directory where you installed Tomcat will be referred to as $JBOSS_HOME.WebServiceDeployerNestedJSE"> <depends optional-attribute-name="MainDeployer" proxy-type="attribute">jboss.04 with Tomcat 1.Application Servers </depends-list> </mbean>--> lines 45-49 <!--<mbean name="jboss. Your login is test@liferay.jboss. Download and install JBoss AS [http://labs.sar/ROOT. 2.ws:service=WebServiceDeployerNestedJSE" code="org. Clear out text between server tags: <?xml version="1.WebServiceDeployerEJB21"> <depends-list optional-attribute-name="Interceptables"> <depends-list-element>jboss.ws:service=WebServiceDeployerJSE</depends> </mbean>--> 18.jboss.mysql. Download and install JDK 5 [http://java. 5.sar/conf/web. Set an environment variable called %JAVA_HOME% to point to your JDK directory.server.com [http://www.xml: 5 .sun.ws. 4. 7.war. 3.xml: <classpath codebase="${jboss.ws:service=WebServiceDeployerEJB21" code="org. Download liferay-portal-4.com] and install.url:lib}/ext" archives="*"/> 6. Download MySQL from www. Delete $JBOSS_HOME/server/default/deploy/jbossweb-tomcat55.liferay.system:service=MainDeployer</depends> <depends>jboss.mysql.com and your password is test.com/portal/] into your preferred directory. Edit $JBOSS_HOME/server/default/deploy/jms/jbossmq-destinations-service. From now on. Open your browser to http://localhost:8080.x.lib.com/javaee/downloads/index.xml. Click on My Liferay at the upper right hand corner to enter the login screen.jsp] .0"?> <server> </server> 19.ws.ejb:service=EJBDeployer</depends-list-element> </depends-list> </mbean>--> lines 72-75 <!--<mbean name="jboss.server.com/web/guest/downloads].server. JBoss 4.jboss.ear [http://www. Start JBoss. Edit $JBOSS_HOME/server/default/conf/jboss-service. Edit $JBOSS_HOME/server/default/deploy/jbossweb-tomcat55.

Application Servers replace default servlet (lines 79-91) : <servlet> <servlet-name>default</servlet-name> <servlet-class>org.jar [http://www.catalina. Create $JBOSS_HOME/server/default/deploy/liferay-ds.apache.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> 8.servlets. Go to $JBOSS_HOME/server/default/lib/ and create new directory ext.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>true</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> with: <servlet> <servlet-name>default</servlet-name> <servlet-class>org. go to appropriate website to download.com/products/connector/j/] and copy to this directory.characterEncoding=UTF-8 </connection-url> <driver-class>com.catalina.servlets. Download mysql-connector-java-{$version}-bin.jdbc.) 6 .xml with following content: <datasources> <local-tx-datasource> <jndi-name>jdbc/LiferayPool</jndi-name> <connection-url> jdbc:mysql://localhost/lportal?useUnicode=true&amp. for other databases.mysql. (This is the JDBC connector for MySQL.mysql.Driver</driver-class> <user-name></user-name> <password></password> <min-pool-size>0</min-pool-size> </local-tx-datasource> </datasources> 9.apache.

a.transport. Edit $JBOSS_HOME/server/default/conf/login-config.liferay.0"?> <server> <mbean code="org. 12.x. <!--<application-policy name = "other">--> . Copy to $JBOSS_HOME/server/default/lib/ext. Download portlet. Deploy liferay-portal-4.com/web/guest/downloads].xml with: <?xml version="1.MailService" name="jboss:service=MailSession"> <attribute name="JNDIName">mail/MailSession</attribute> <attribute name="User">nobody</attribute> <attribute name="Password">password</attribute> <attribute name="Configuration"> <configuration> <property name="mail.com/web/guest/downloads]. a.jboss. b.store. create new directory $JBOSS_HOME/server/default/deploy/liferay-portal.UsersRolesLoginModule" flag = "required" /> </authentication> </application-policy>--> 14.jboss.sql.imap.x Dependencies [http://www.ear/lib 7 .ear. Download script create-mysql.x SQL Scripts [http://www.liferay. b. Configure JAAS.auth.sql from Liferay Portal 4. Set mail properties by replacing the contents of $JBOSS_HOME/server/default/deploy/mail-service.mail.xml and comment out the entire XML for policy other in lines 140-156..spi.security.ear to directory go into $JBOSS_HOME/server/default/deploy/liferay-portal. Populate your database with the portal schema and defult data.Application Servers 10.smtp. In command prompt.host" value="localhost" /> <property name="mail.jar and portal-kernel.protocol" value="imap" /> <property name="mail.protocol" value="smtp" /> <property name="mail.x. run mysql script by entering mysql < create-mysql. c.ear unzip liferay-portal-4.pop3.host" value="localhost" /> </configuration> </attribute> </mbean> </server> 13. a. <!--<authentication> <login-module code = "org..host" value="localhost" /> <property name="mail.jar from liferay Portal 4. 11.

war [http://www. a.jar from JBOSS_HOME/server/default/lib 15.liferay. Others may work but will not be covered in this documentation. Download script create-mysql. If the files do not extract to this directory.x SQL Scripts [http://www. Click on My Liferay at the upper right hand corner to enter the login screen. b. Edit JBOSS_HOME/server/default/deploy/jbossjca-service.11 [http://jetty.com] and install.jar.Application Servers • • • move dom4j.jar from liferay Portal 4. Edit JBOSS_HOME/server/default/deploy/jms/jbossmq-destinations-service. $(jetty.4 or 1. 5.sql from Liferay Portal 4.liferay. Note: Only this version of Jetty is supported by Liferay.sun.config. Populate your database with the portal schema and default data. Open your browser to http://localhost:8080.com/web/guest/downloads].org/jetty/index.com/javaee/].xml: change Debug attribute in line 63 from true to false: <attribute name="Debug">false</attribute> 16.1.0"?> <server> </server> 17. Clear out text between server tags: <?xml version="1.jboss-hibernate.com/web/guest/downloads]. From now on the home directory where you installed Jetty will be called $JETTY_HOME. 4.mortbay. Jetty 5.html].sql 7. Your login is test@liferay.jar and portal-kernel. 6.jaxen. Download MySQL from www. Download liferay-portal-pro-4.jar to JBOSS_HOME/lib move commons-collections. 2.0. Create a $JETTY_HOME/lib/ext directory and copy these two files there. make sure they are in the correct directory by moving them there.home)/lib/ext/ 8 .jar.1.5 [http://java.liferay. Start JBoss.x Dependencies [http://www.1 1. Set an environment variable called %JAVA_HOME% to point to your JDK directory.com/web/guest/downloads] In command prompt. Download portlet. Download and install Jetty 5.mysql.com and your password is test.mysql. Edit $JETTY_HOME/extra/etc/start-plus.jar goes to JBOSS_HOME/server/default/lib remove hibernate3. Download and install JDK 1.xml.1. a.com [http://www. 3. run mysql script by entering mysql < create-mysql.

liferay.enhydra.mortbay.host">localhost</Put> </New> </Arg> </Call> 11. (This is the JDBC connector for MySQL.pool. 9 . <Call name="addService"> <Arg> <New class="org. a. }..plus.jaas.home)/lib/ext/* 8.mysql.jdbc.config. for other databases.enhydra.jetty.mysql.jdbc.JotmService"> <Set name="Name">TransactionMgr</Set> <Call name="addDataSource"> <Arg>jdbc/LiferayPool</Arg> <Arg> <New class="org.mortbay.characterEncoding=UTF-8</ <Set name="User"></Set> <Set name="Password"></Set> </New> </Arg> <Arg> <New class="org.Driver</Set> <Set name="Url">jdbc:mysql://localhost/lportal?useUnicode=true&amp.MailService"> <Set name="Name">MailService</Set> <Set name="JNDI">mail/MailSession</Set> <Put name="mail. Download mysql-connector-java-{$version}-bin.StandardXAPoolDataSource"> <Arg type="Integer">4</Arg> <Set name="MinSize">4</Set> <Set name="MaxSize">15</Set> </New> </Arg> </Call> </New> </Arg> </Call> 9.portal. go to appropriate website to download. Edit $JETTY_HOME/etc/jetty. Create $JETTY_HOME/etc/jaas. <Call name="addService"> <Arg> <New class="org.Application Servers $(jetty.PortalLoginModule required.standard. PortalRealm { com.xml and configure a mail session.jdbc. Create a mail session bound to mail/MailSession.jar [http://www.security. Create a data source bound to jdbc/LiferayPool by editing $JETTY_HOME/etc/jetty.) 10.plus.jetty.com/products/connector/j/] and copy to to $JETTY_HOME/lib/ext.smtp.StandardXADataSource"> <Set name="DriverName">com.xml.kernel.

com [http://www.config=. Copy $JETTY_HOME/webapps/root/WEB-INF/lib/commons-logging. 3.jar.xml goto end :errorJavaHome echo JAVA_HOME not defined..jar and xml-apis. Create directory $JETTY_HOME/webapps/root and unpack liferay-portal-pro-4. For JDK 1.jar to JETTY_HOME/ext (overwriting existing one).17 1. 2.x.config -jar . Your login is test@liferay. goto end :end Note: If you get a java.login.config -DSTART=. Note: If you are using JDK 1.security. configure accordingly) @echo off if "" == "%JAVA_HOME%" goto errorJavaHome %JAVA_HOME%/bin/java -Xmx512m -Dfile. From now on. b. Set an environment variable called %JAVA_HOME% to point to your JDK directory.encoding=UTF8 -Duser./etc/jetty.. 13.apache. For JDK 5 users: move $TOMCAT_HOME/webapps/ROOT/WEB-INF/lib/xercesImpl./start. Create batch file.apache.jar .war.17 [http://tomcat.sun.bat./etc/jaas.Application Servers 12. 16. Download and install Tomcat 5.com/javaee/downloads/index. Download and install JDK 5 [http://java.mysql. give your JVM more memory by setting -Xmx512m..4. the directory where you installed Tomcat will be referred to as $TOMCAT_HOME.com and your password is test. For other platforms. Go to $JETTY_HOME/webapps/root/WEB-INF/lib and delete xercesImpl. Open your browser to http://localhost:8080.timezone=GMT -Djava. a. Click on My Liferay at the upper right hand corner to enter the login screen.OutOfMemoryError exception while starting up Jetty.4 users: delete $TOMCAT_HOME/webapps/ROOT/WEB-INF/lib/xercesImpl.jar to TOMCAT_HOME/common/endorsed.jar. you must download and install the JDK 1.bat (Note.4 Compatability Package at tomcat. 10 .5.5. Start Liferay by running run. Download MySQL from www. 15.. 14. Tomcat 5.com] and install. this is for Windows platform.org/] into your preferred directory.auth. Create a directory $JETTY_HOME/bin Create run./extra/etc/start-plus.lang.mysql.jsp] .

com/products/connector/j/].xml and configure a mail session.sql..DataSource" driverClassName="com. Edit $TOMCAT_HOME/conf/catalina. Create a mail session bound to mail/MailSession.sql from Liferay Portal 4.. Configure data sources for your database.com/web/guest/downloads]. Make sure the JDBC driver for your database is accessible by Tomcat.com/web/guest/downloads].jar 8.liferay. a.x SQL Scripts [http://www.> <Resource name="jdbc/LiferayPool" auth="Container" type="javax.characterEncoding=UTF-8" username="" password="" maxActive="100" maxIdle="30" maxWait="10000" /> </Context> 10.Application Servers 4. Edit $TOMCAT_HOME/conf/Catalina/localhost/ROOT.jar and portal-kernel. b.liferay. Create and edit $TOMCAT_HOME/conf/Catalina/localhost/ROOT. In command prompt.\ ${catalina. 7..home}/common/classes. a.) Copy to $TOMCAT_HOME/common/lib/ext.jar [http://www.. common. Download portlet.war [http://www.\ .xml to set up the portal web application. If the files do not extract to this directory. Edit $TOMCAT_HOME/conf/Catalina/localhost/ROOT.properties. run mysql script by entering mysql < create-mysql.> 11 . Create a $TOMCAT_HOME/common/lib/ext directory and copy these two files there. a. Download script create-mysql.mysql.home}/common/lib/ext/*.jdbc. b.xml. (This is the JDBC connector for MySQL.com/web/guest/downloads].Driver" url="jdbc:mysql://localhost/lportal?useUnicode=true&amp.jar from liferay Portal 4.x Dependencies [http://www. Populate your database with the portal schema and default data.x. Download mysql-connector-java-{$version}-bin. for other databases. make sure they are in the correct directory by moving them there.mysql.. 9. <Context path=""> </Context> 5. <Context.liferay. Download liferay-portal-pro-4. go to appropriate website to download.sql 11. <Context.. 6.loader= ${catalina.

portal.PortalLoginModule required. point browser to http://localhost:8080. Sign in as test@liferay.. Create $TOMCAT_HOME/conf/jaas.liferay. set JAVA_OPTS=-Xms128m -Xmx512m -Dfile.apache.encoding=UTF8 -Duser.com and password test 12 . Repeat this step for a file called $TOMCAT_HOME/conf/Catalina/localhost/tunnel. Edit $TOMCAT_HOME/conf/Catalina/localhost/ROOT.security. <!-. 18. PortalRealm { com.> <Realm className="org. edit $TOMCAT_HOME/conf/server.portal.1 Connector on port 8080 --> <Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8" /> 19. For supporting UTF-8 UIRIEncoding.PortalPrincipal" roleClassNames="com. }. Run Tomcat.config 16. 15.xml and configure a security realm.jaas.protocol="smtp" mail..PortalRole" debug="99" useContextClassLoader="false" /> </Context> 13.JAASRealm" appName="PortalRealm" userClassNames="com.config=%CATALINA_HOME%/conf/jaas.jaas.host="localhost" /> </Context> 12.Execute. 14.mail.portal.kernel.security.liferay. Delete contents $TOMCAT_HOME/webapps/ROOT directory. 17.smtp.Define a non-SSL HTTP/1. rem ----.config. Edit $TOMCAT_HOME/bin/catalina.auth. Configure JAAS.xml.security.transport.realm.liferay.Session" mail.bat so that Tomcat can reference the login module.x..jaas.catalina.login.war to $TOMCAT_HOME/webapps/ROOT. Unpack liferay-portal-pro-4.timezone=GMT -Djava.xml if you want to enable Liferay's HTTP tunneling.Application Servers <Resource name="mail/MailSession" auth="Container" type="javax.security. <Context..

Download and install JDK 5 [http://java.xerces.protocol> <mail.home}/lib"/> <tree-loader path="${server.SAXParserFactoryImpl" /> <system-property 13 . Edit $RESIN_HOME/conf/resin.host> <mail.sun.mysql.rootDir}/common/classes"/> <library-loader path="${server.root}/lib"/> <compiling-loader path="${server.pop3.xml. 4.mysql.host> </init> </resource> <system-property javax. Download MySQL from www.pop3.imap.host> <mail.host>localhost</mail. replace lines 60-64 <class-loader> <tree-loader path="${resin.caucho.smtp.jaxp.Application Servers Resin 3.jsp] .mysql.host>localhost</mail. 2.SAXParserFactory="org.DocumentBuilderFactory /> <system-property javax.Driver"> <url>jdbc:mysql://localhost/lportal?useUnicode=true&amp. Download and install Resin [http://www.apache.transport. From now on.jdbc.xerces.home}/lib"/> <tree-loader path="${server.19 1.parsers.com] and install.jaxp.0.com/] into your preferred directory.imap.apache.characterEncoding=UTF-8</url> <user></user> <password></password> </driver> <prepared-statement-cache-size>8</prepared-statement-cache-size> <max-connections>20</max-connections> <max-idle-time>30s</max-idle-time> </database> <resource jndi-name="mail/MailSession" type="javax.com [http://www.root}/lib"/> </class-loader> with <class-loader> <tree-loader path="${resin.host>localhost</mail.Session"> <init> <mail.protocol>smtp</mail.transport.conf.parsers.rootDir}/common/lib"/> </class-loader> add: <database> <jndi-name>jdbc/LiferayPool</jndi-name> <driver type="com.store.mail. Set an environment variable called %JAVA_HOME% to point to your JDK directory.smtp.protocol> <mail.com/javaee/downloads/index.store.xml. the directory where you installed Resin will be referred to as $JBOSS_HOME. 3.DocumentBuilderFactory="org.protocol>imap</mail.

jar from Liferay Portal 4. In command prompt.jar to $RESIN_HOME\lib 11.zip.driver="org.0.xerces.com/products/connector/j/].1 Dependencies [http://www. 9.0-src.xml. for other databases. Do so intermittently to save your changes. Go to $RESIN_HOME and create new directory common\lib.1. Your login is test@liferay.apache. Download and extract these liferay jars to websphere\appserver\lib\ext.Application Servers javax.transform. Delete contents of $RESIN_HOME\webapps\ROOT.sax.TransformerFactoryIm /> <system-property org.com/web/guest/downloads]. Open your browser to http://localhost:8080. Websphere will prompt you to Click Save to apply changes to Master Configuration. Download portlet.xml.apache. 14 . 4.sql from Liferay Portal 4.processor. Go to $RESIN_HOME\bin and create run.com/web/guest/downloads] and copy to $RESIN_HOME\common\lib.5 Note: Throughout this installation and configuration process. Start Resin.bat. Download liferay-portal-ent-4. Unzip liferay-portal-pro-4.timezone=GMT 12. 7.jar to $RESIN_HOME\lib Go to $\lib\portal and copy xercesImpl.jar and xml-apis. Install MySql. Click on My Liferay at the upper right hand corner to enter the login screen. 10.jar and portal-kernel. Installation 1. b. Websphere 6. Go to $\lib\development\ and copy activation. . b.SAXParser" /> 5.sql.0.liferay.mysql. 3. Download script create-mysql. a.. a.xalan. run mysql script by entering mysql < create-mysql. Download Liferay Portal Professional 4. (This is the JDBC connector for MySQL.x.encoding=UTF-8 -Duser.jar to $RESIN_HOME\common\lib .com and your password is test.\httpd. Download mysql-connector-java-{$version}-bin [http://www. go to appropriate website to download. 8.jar and mail. 6. saxpath. 2.0 WAR .liferay.jar and copy to this directory. unzip and compile.war to $RESIN_HOME\webapps\ROOT.parsers.exe -Xmx512m -Dfile.2.jar and xalan.1 SQL Scripts [http://www.) Populate your database with the portal schema and default data. Install IBM Websphere.TransformerFactory="org.

optional.1 JAAS Libraries [http://www.jar and portlet.jar (Liferay Portal Enterprise 4. Start Websphere.x. Open Adminstrative Console and login.mysql. 2. 7. 3.jdbc.com/web/guest/downloads]) liferay-portal-jaas. 4. Click Next. click JDBC Providers. liferayjdbc.1.liferay. For name.html]) Set Up Database Service 1.liferay.g. For Implementation class name enter com. Clear any text in classpath.jdbc2. 6. Click Resources.1. 5.mysql.Application Servers • • • portal-kernel. e.jar (Liferay Portal 4.com/web/guest/downloads]) portal-ear\mysql-connector-java-3.1 Dependencies [http://www.x-bin. enter name of jdbc provider.MysqlConnectionPoolDataSource 15 .jar (MySQL [http://dev.1.com/downloads/connector/j/3.

11. 10. 16 . Click Data sources under Additional Properties. 9. Everything else should stay to default. Enter a name: liferaydatabasesource.Application Servers 8. 13. Click New. 12. Enter JNDI. Click OK. jdbc/LiferayPool.

Create 3 custom properties by entering Name. 17. Under Additional Properties. Value and clicking OK for each row on this table.Application Servers 14. click Custom properties. 17 . Click New. 16. Click OK. 15.

Application Servers Table 1. When done correctly. name 1. serverName 3. databaseName root localhost lportal value 18. custom properties should look like this: 18 .1. user 2.

com/web/guest/downloads] and extract create-mysql. Click Resources.liferay.1. Mail providers. 20. 4.sql 21. Click New. Mail Configuration 1.sql. run mysql script by entering mysql < trunk\sql\create\create-mysql. 3. Click Built-in Mail Provider. 2. Name: liferaymail JNDI name: mail/MailSession 19 . Download Liferay Portal 4.0 SQL Scripts [http://www. Click Mail Sessions. b. Click data sources test connection to test. In command prompt.Application Servers 19. a.

Click Global security. 20 . Click Security.Application Servers 5. Click OK. 6. 7.

PortalUserRegistry.portal. 10. 13.ext.security.liferay. 21 .jaas. 11. 12. 15. Enter 'system' for server user ID. select custom user registry. Click Apply. 9. Enter Custom registry class name com. Deselect enforce java 2 security. Select Enable global security. Enter 'password' for server user password.websphere. In Active user registry. Click Apply to go to Custom user registry page.Application Servers 8. 14.

Enter Insert into User_ (companyId. 'password'). password_) values ('system'. userId. Insert username/password into database. 17. 18. Enter Use lportal 19.Application Servers 16. 'system'. 22 . Open a mysql console.

2.Application Servers Install Liferay 1. Click Next 23 . Click Applications. 3. click Install new applications Browse for portal-ear\liferay-portal. Enter context root '/'.war. 4.

Click Next. 24 . For Steps 1 to 4.Application Servers 5. Click Continue. Select Generate Default Bindings>Override default bindings>Use default viral host name for web modules: 6. click Next to apply defaults.

check all authenticated. In Step 5.Application Servers 7. 25 .

Application Servers 8. Click Next. 26 .

27 . 10.Application Servers 9. Click Finish. Wait for installation process.

Applications. a. 28 . Start Liferay Portal 1.Application Servers 11. Save this configuration to master configuration by clicking on System administration and Save Changes to Master Repository. Click Enterprise Applications.

29 . Liferay portal home page should be seen. PlantsByWebSphere and SamplesGallery.war. 4. 3.bat" server1 -user system password password Stop Websphere and retart it. Edit your Stop the Server shortcut to set the user id and password. Select liferay-portal. click start Open up browser and point to http://localhost:9080.Application Servers b. c. 2. If you don't do this. you will not be able to stop the server after you restart WebSphere: "C:\Program Files\WebSphere\AppServer\bin\stopServer. Uninstall DefaultApplication. Login on with 'system' for username and 'password' for password.

batch_size=0 Do not use the default setting of 20.Chapter 2.oracle.jdbc.jar [http://www.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201. Edit portal. also follow this step: 1. 30 .html] For Oracle 10. Special Cases Using Oracle 9 and 10 Database For Oracle 9 and 10 use jdbc driver ojdbc14.properties and add: hibernate.

Sign up to vote on this title
UsefulNot useful