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.
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.
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.
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.
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
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.
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.
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.
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.