Blogi »
Liferay 5.2.3 Amazon EC2 Image (AMI)

After I've done some performance testing for Liferay on Amazon (actually, I've simple tested our EmForge.net) - I received some requests to provide AMI with Liferay to play with.

So - here it is:

  • AMI ID: ami-b88c61d1
  • AMI ID (EU Region) : ami-0bddf67f
  • Architecture: i386

What's inside (in short)

  • Ubuntu 9.10 (Latest public for a moment with latest updates) - actually this AMI is based on official Ubuntu AMI;
  • Sun JDK 1.6;
  • Tomcat 6.0.20 as application system;
  • Apache 2.2.12 as front-end server (conneced to tomcat via mod_jk);
  • Liferay 5.2.3 (latest for a moment);
  • MySQL 5.1.37;

 How to Use

Since it is based on standard Ubuntu AMI - I'm highly recommend to read Ubuntu EC2 Starters Guide - everything described there correct for our AMI. In general - if you have everything setup - you may run instance with command:

ec2-run-instances ami-b88c61d1 -k ec2-keypair

After it - wait some time - check your running instances - after instance started Liferay will be available at the default http port 80 on running server.

What is inside (a little bit more detailed)

Tomcat was installed from Ubuntu repository - only few settings was changed to be able to run Liferay (disabled tomcat security, increased memory, changed list of folder used as catalina libs). Liferay itself deployed into tomcat and available at /var/lib/tomcat6/webapps/ROOT

I've removed 7Coz hook and theme - so, actually you will have default liferay installation with some additional portlets (Chat, Mail, WOL)

You can login into Liferay as admin wih default username/password (test@liferay.com/test) - Please change it!

Liferay is configured to use local MySQL as DB and /var/lib/liferay as liferay home (for hot-deploy, lucene indexes and rest Liferay files)

Connection to DB done via JNDI datasource, so, connection settings you can find in /etc/tomcat6/context.xml

MySQL configured to store data in same instance memory - so, afer instance will be stopped - all data will lost. If you want to use this AMI in production - you need to change MySQL configuration to store data in ESB or to perform backups (for example via replications).

MySQL root password is changeme - please change it!

I've did not configured smtp server on the instance. So, sending emails will not work - please configure your Liferay to use some external smtp server or install/configure postfix

Feedback

Feel free to use this AMI - I hope it will be helpful for you. I will be happy to get any comments/feedack - you can leave comments for this post (required register on the site).

Alexey Kakunin

Twitter emforge

O mnie I hope to make EmForge really useful for all developers

Szczegóły aktualności
Wpisy na blogu <b>33</b> Wpisy na blogu 33 RSS
Zadań: <b>203</b> Zadań: 203
Przyjaciół: <b>27</b> Przyjaciół: 27