What is liferay?
With liferay we can create any number of custom sites. We can easily create sections like web content, blog content etc and share between those
sites. We can drag and drop sections to create website parts. So it is easy to use for admin users to add sections and drag to create pages.
“Liferay Portal is an open source enterprise web platform for building business solutions that deliver immediate results and long-term value. Liferay Portal started out as a personal development project in 2000 and was open sourced in 2001.”
Download liferay from: https://www.liferay.com/it/downloads-community
Or by command line:
Here we are going to install liferay version 7.3
check the readme file in (after downloading liferay portal)
After that Download and install Java (JDK) 8 (if necessary) in your local environment.
Java 8 is the current Long Term Support version and is still widely supported, though public maintenance ends in January 2019. To install OpenJDK 8, execute the following command:
sudo apt install openjdk-8-jdk
➜ java -version openjdk version "1.8.0_232" OpenJDK Runtime Environment (build 1.8.0_232-8u232-b09-0ubuntu1~18.04.1-b09) OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
Extract the liferay portal .zip file. Copy the folder
liferay-ce-portal-7.3.0-ga1 to your home path. And go inside the folder path as shown below:
Start Tomcat server:
sh startup.sh Using CATALINA_BASE: /home/abhi/liferay-ce-portal-7.3.0-ga1/tomcat-9.0.17 Using CATALINA_HOME: /home/abhi/liferay-ce-portal-7.3.0-ga1/tomcat-9.0.17 Using CATALINA_TMPDIR: /home/abhi/liferay-ce-portal-7.3.0-ga1/tomcat-9.0.17/temp Using JRE_HOME: /usr/lib/jvm/java-8-openjdk-amd64 Using CLASSPATH: /home/abhi/liferay-ce-portal-7.3.0-ga1/tomcat-9.0.17/bin/bootstrap.jar:/home/abhi/liferay-ce-portal-7.3.0-ga1/tomcat-9.0.17/bin/tomcat-juli.jar Tomcat started.
Restart command for Tomcat server:
sh shutdown.sh && sh startup.sh
Restart the Tomcat server
sh shutdown.sh && sh startup.sh
If the server is not started properly, you can check the logs here:
cd ~/liferay-ce-portal-7.3.0-ga1/tomcat-9.0.17/logs/ && tail -f catalina.out
I faced the following issue in new 7.3 version with mysql db which I didn’t face with 7.2 version with Hypersonic DB. My mysql db schema is not proper to version 7.3.
__ ____________________ _____ __ / / / _/ ____/ ____/ __ \/ \ \/ / / / / // /_ / __/ / /_/ / /| |\ / / /____/ // __/ / /___/ _, _/ ___ |/ / /_____/___/_/ /_____/_/ |_/_/ |_/_/ Starting Liferay Community Edition Portal 7.3.0 CE GA1 (Athanasius / Build 7300 / January 20, 2020) 2020-03-23 12:22:13.798 INFO [main][StartupHelperUtil:99] There are no patches installed You must first upgrade the portal to the required schema version 8.1.0 2020-03-23 12:22:13.860 ERROR [main][MainServlet:300] java.lang.RuntimeException: You must first upgrade the portal to the required schema version 8.1.0 java.lang.RuntimeException: You must first upgrade the portal to the required schema version 8.1.0 at com.liferay.portal.events.StartupHelperUtil.verifyRequiredSchemaVersion(StartupHelperUtil.java:220) at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:136) at com.liferay.portal.events.StartupAction.run(StartupAction.java:77) at com.liferay.portal.internal.servlet.MainServlet.init(MainServlet.java:297)
You’re presented a Basic Configuration page. Complete the configuration options. Liferay Portal uses an embedded database (HSQL) to make installation fast and easy. This database is not ready for production, so consider configuring a production-ready database (e.g., MySQL) if you plan on doing more than just exploring/testing. Agree to the terms and conditions, create a password, and configure a security question/answer.
You can now use Liferay Portal!
You can check all the projects from Liferay:
Get started from here:
“Liferay Plugin SDK is a development environment allows you to develop plugins for Liferay of all types such as Portlet, Themes, Layout Templates. The Liferay Plugin SDK is based on the Apache Ant tool and it can be integrated with all the common IDEs or used directly from the command line by executing a set of predefined commands (targets, in Ant’s nomenclature). In this tutorial I show how to configure the Plugin SDK in the Eclipse IDE”
Check this link (this doc is for version 6.1) :
This is the paid version from Liferay. With Liferay DXP you can implement not just static site, but something like today’s frontend fromeworks do (updating the DOM according to framework and spontaneous data change). Also you get the liferay support according to your plan.