Liferay 6.1 GA1 in the cloud, step by step
Staff Blogs January 12, 2012 By Manuel de la Peña Staff
Follow these simple steps to achieve it, even if you want to use the new Setup Wizard:
- Go to Jelastic (www.jelastic.com), create an account depending of your location
- Create an enviroment: Tomcat 6 + MySQL 5
- Upload portal libraries (portal-client and dependencies) to SERVER_ROOT/lib. Include here JDBC driver for your database.
- Upload WAR file from sourceforge (here) (Jelastic make it easy that uploading, because directly links to that WAR file)
- Create portal-ext.properties at SERVER_ROOT/home, with this values:
- Modify SERVER_ROOT/server/context.xml file with this values (note that the "mysql-" is very important at db url):
<Resource name="jdbc/LiferayPool" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="USER" password="PASSWORD" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://mysql-ENVIROMENT_NAME.jelastic.com/DATABASE_NAME?useEncoding=true&characterEncoding=UTF-8" />
- Clean catalina.out log to be sure that your installation is successfull.
- Restart server.
- Check in catalina.out that Liferay starts reading your portal-ext
- Browse to you portal: ENVIROMENT_NAME.jelastic.com
- Setup Wizard is the first thing you'll see, but as JNDI is configured, we cannot modify database settings. We should go to SERVER_ROOT/server/context.xml for database changes.
- Set up for portal (name, language, admin credentials), and...
- Here it is! Your portal up and running!
Then, you can tune your portal with portal-ext reminding not to modify properties set in this blog.
Importants (and new things):
As you can see, we are taking care of telling setup wizard where to read the new props file (the include-an-override property), and we are also configuring database with JNDI, but of course you can do it with JDBC, just with the usual way:
Hope it helps!