Download and Installation of Liferay Portal 6.1 |Video upload date:  · Duration: PT8M25S  · Language: EN

Step by step guide to download and install Liferay Portal 6.1 on Windows or Linux with Tomcat and database setup for a local portal server

Why this exists

If you want a local Liferay 6.1 portal server without a therapy session about enterprise middleware, this guide gets you there fast. It covers the essentials from Java setup to the first browser login while keeping the drama to a minimum. Expect a tiny bit of snark and zero hand waving.

Prerequisites

  • Java JDK installed and ready
  • Liferay 6.1 Tomcat bundle or a Liferay war if you are adventurous
  • Enough disk space and patience for logs to scroll

Step 1 Install Java JDK

Liferay runs on Java so make sure a supported JDK is present. On Linux or mac export the environment variable JAVA_HOME to point to the JDK folder. For example use a command like

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

If JAVA_HOME is wrong or missing you will get mysterious errors and the kind of afternoon that begs for blame shifting.

Step 2 Download the Liferay Tomcat bundle

Grab the Liferay 6.1 bundle that already includes Tomcat for the fastest route to a running portal. Choosing the Tomcat bundle avoids extra app server setup and gets you prototyping faster.

Step 3 Unpack the bundle

Extract the zip or tar archive to a folder that does not have spaces in its path. Older scripts get grumpy with spaces and will punish you by failing at runtime.

Step 4 Configure a database

For quick testing use the embedded HSQL database that ships with the bundle. For anything that even pretends to be real use MySQL or PostgreSQL.

If you pick a production style database do these things

  • Create a user and a database for Liferay
  • Update the datasource configuration either in Tomcat context xml or in portal ext properties to point to your DB and credentials
  • Restart Tomcat after changes

Step 5 Start Tomcat

Run the startup script in the bin directory to launch the bundled Tomcat. On Linux or mac use

cd liferay-portal-6.1/tomcat/bin
./startup.sh

Watch the logs in the logs folder and wait for the line that indicates the server is ready. That triumphant moment feels like a miracle but it is mostly file I O and patience.

Step 6 Complete the initial portal setup

Open your browser to localhost on the Tomcat port, for example localhost on port 8080. The Liferay setup wizard will guide you through creating the admin account and choosing basic options. You can accept defaults for a quick proof of concept or customize for a more realistic test environment.

Troubleshooting quick hits

  • Blank page or stack traces on startup Make sure JAVA_HOME points to a JDK not a JRE
  • Database connection errors Check credentials and update the datasource configuration
  • Permissions issues Ensure the Tomcat user can read and write the data and temp folders

Production notes and next steps

HSQL is fine for demos but not for actual traffic. For production choose MySQL or PostgreSQL and tune the JVM based on memory and load. Put Tomcat behind a load balancer or reverse proxy and plan for backups of the database and file storage.

Final words before you go

If you want the fastest path to a local Liferay 6.1 instance use the Tomcat bundle with the embedded database. If you want something that survives a real user base invest time in a proper database, JVM tuning and a deployment pipeline. Either way you will learn more from the errors than the success and that is how software humbles you into competence.

I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!

This is a dedicated watch page for a single video.