The upgrade from 7.x to Liferay 7.4 is a transformative shift designed to align your platform with today’s dynamic digital demands.
Liferay 7.4 offers a vastly improved, modular architecture, cutting-edge tools, and the flexibility to create personalized digital experiences effortlessly.
Upgrading to 7.4 ensures your platform is leaner, faster, and ready to tackle tomorrow’s challenges while delivering seamless and engaging experiences to users.
Now that you are already here, it is obvious that you want to know about how to seamlessly upgrade to Liferay DXP 7.4. Say no more! We are here to make it as easy as possible for you. Scroll down to upgrade 7.x to Liferay DXP 7.4 with us.
Here are some outstanding features of Liferay DXP 7.4. These features position Liferay DXP 7.4 as a powerful, flexible, and future-ready platform for modern enterprises.
Liferay 7.4 offers powerful tools to analyze and optimize your digital content:
Empowering non-technical users with intuitive tools:
Read More: Low-code/No-code features for Business Growth with Liferay DXP Explained
For organizations with complex B2B needs, Liferay 7.4 offers:
Liferay 7.4 simplifies content-heavy site management:
Liferay 7.4 strengthens enterprise connectivity and security with:
Migrating from Liferay DXP 7.x to Liferay DXP 7.4 requires careful planning and preparation to ensure a smooth transition. Before diving into the upgradation process, let’s focus on critical housekeeping tasks to clean up and organize your portal data. This preparation not only simplifies upgradation but also enhances the performance of your portal in Liferay DXP. Just mentioning: We can always help you with our Liferay Upgrade Services to cut off the hassle. Okay, let’s begin
To streamline the migration and improve the efficiency of your portal post-migration, start by removing unused or obsolete objects, including:
Liferay DXP stores multiple versions of web content and documents each time an update is made. For example:
Instead of migrating to all these versions, focus on retaining only the most recent version (e.g., 1.3). This reduces the amount of data being moved, speeding up the migration process and improving system performance.
How to do it?
While manual deletion is possible, using Liferay’s APIs is far more efficient:
With a small piece of custom code, you can automate this process, saving significant time and effort.
In Liferay DXP, web content structures often have fields with duplicate names, which is allowed. However, Liferay 7.4 enforces stricter rules and requires all field names across structures to be unique. Failure to resolve duplicates can lead to migration failures.
Steps to fix this:
For example, instead of having multiple fields named “Title”, rename them to something like “Article_Title”, “Event_Title”, or “News_Title” based on the content type.
Liferay DXP relies on a database schema that may differ from 7.x. Ensure your database is optimized by performing the following:
Liferay provides tools like the Upgrade Tool and the Database Upgrade Wizard to assist with schema updates during the migration process.
Upgrading your Liferay DXP database to the latest version ensures compatibility, enhanced performance, and access to new features. In this guide, we provide a step-by-step process to make the transition seamless and error-free.
Access the MySQL command line interface to connect to your database.
mysql -u root -p
Check the list of existing databases to confirm the current setup.
show databases;
Create a blank database in UTF-8 encoding to ensure compatibility with Liferay.
CREATE DATABASE database_name CHARACTER SET utf8 COLLATE utf8_general_ci;
Create a database dump from the current database into a file.
mysql dump -uroot -p1 database_name > lr_migration.sql
Import the database dump from the source system into the newly created database.
mysql -u root -p database_name < lr_migration.sql
Run the following query to identify and remove invalid records from the DDMStructureLayout table.
select structureLayoutId from DDMStructureLayout where groupId not in (select groupId from Group_);
Delete any invalid IDs found to avoid migration errors
Click here to know the reason for deleting records from ddmstructurelayout table.
Take a backup of the existing data folder and copy it to the new Liferay instance.
cp -r {liferay.home}/data {backup_location}/data_backup
cp -r {liferay.home}/data {new_liferay_home}/data
Remove old logs, cached files, and OSGi state data.
rm -rf {liferay.home}/tomcat/logs
rm -rf {liferay.home}/tomcat/work
rm -rf {liferay.home}/osgi/state
Delete any outdated license files to prevent conflicts.
rm -rf {liferay.home}/data/license
To prevent reindexing content and performance issues during the upgrade, create the following configuration file:
Edit {liferay.home}/tools/portal-tools-db-upgrade-client/app-server.propertiesto define paths and server details.
dir=../../tomcat
extra.lib.dirs=/bin
global.lib.dir=/lib
portal.dir=/webapps/ROOT
server.detector.server.id=tomcat
Specify the database connection details in {liferay.home}/tools/portal-tools-db-upgrade-client/portal-upgrade-database.properties:
jdbc.default.driverClassName=com.mysql.cj.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/database_name?characterEncoding=UTF-8&serverTimezone=GMT
jdbc.default.username=your username
jdbc.default.password=your password
Enable upgrade reporting in {liferay.home}/tools/portal-tools-db-upgrade-client/portal-upgrade-ext.properties
liferay.home=/path/to/liferay-dxp
upgrade.report.enabled=true
Enhance server performance by configuring memory settings in setenv.sh|bat:
CATALINA_OPTS="-Xms16G -Xmx16G -XX:MaxNewSize=3g -XX:MetaspaceSize=2g"
Edit {liferay.home}/tomcat/conf/Catalina/localhost/ROOT.xml for JNDI data source settings:
<Resource name="jdbc/LiferayPool"
factory="com.zaxxer.hikari.HikariJNDIFactory"
jdbcUrl="jdbc:mysql://localhost:3306/bviplutouatupgradev3_db"
driverClassName="com.mysql.cj.jdbc.Driver"
username="root" password="root"
maxLifetime="0" maximumPoolSize="100" />
Download and copy the MySQL JAR file to {liferay.home}/tomcat/lib.
Place the portal-ext.properties file in {liferay.home} with additional configurations as needed.
Execute the upgrade client tool to start the database upgrade.
cd {liferay.home}/tools/portal-tools-db-upgrade-client
./db_upgrade_client.sh
Track the start and end times of the process to ensure it is completed successfully.
If migration halts, access Gogo shell to resolve issues:
upgrade:execute com.liferay.fragment.service
verify:executeAll
exit
./db_upgrade_client.sh
Find upgrade reports in the following location:
{liferay.home}/tools/portal-tools-db-upgrade-client/reports/upgrade_report.info
Example Output:
Type: major
Result: success
Status: There are no pending upgrades
Analyze logs for errors or warnings during the process:
{liferay.home}/tools/portal-tools-db-upgrade-client/logs/upgrade.log
Key Log Message:
Major upgrade finished with result success
After completing the upgrade, enable the indexer to re-enable indexing functionality. Modify the file {liferay.home}/osgi/configs/com.liferay.portal.search.configuration.IndexStatusManagerConfiguration.config with the following content:
indexReadOnly=false
The database migration to Liferay 7.4 is complete.
Liferay Developer Studio provides a streamlined way to upgrade your codebase to newer versions of Liferay. In this guide, we will walk through the process of upgrading your Liferay project to version 7.4 using the built-in “Liferay Upgrade Plan” feature.
Screenshot of the IDE download page:
Ensure you have the Liferay Developer Studio installed and configured properly. Open the workspace containing the project you want to upgrade.
Refer to the screenshot below for the exact menu location:
When you click on New Liferay Upgrade Plan, a dialog box will open. Follow these steps:
Screenshot of the configuration popup:
Click Finish to proceed.
After clicking Finish, a new perspective dedicated to the upgrade plan will open. This perspective includes:
Screenshot of the upgrade perspective:
Work through each step in the upgrade plan sequentially. Below is a detailed explanation of each step:
Manual Service Builder Creation and Code Transfer
Instead of migrating the existing Service Builder, you can create a new Service Builder in Liferay
7.4. Copy all entities from the old service.xml into the new service.xml, then run the buildService command to generate the required service classes. Afterward, manually implement custom methods and finders into the *Impl classes to ensure compatibility with Liferay 7.4.
Manual Theme Creation and Code Transfer
In some cases, it’s easier to create a theme from scratch in Liferay 7.4 and apply appropriate styling from 7.x, given the changes between versions. While not an automatic process, this approach can be more efficient than migrating complex themes directly.
You can manually create new layouts, copy and paste the existing code, and adjust the FTL templates to ensure consistency and compatibility with the new version.
Once all upgrade tasks are completed, test the project thoroughly:
Upgrading to Liferay 7.4 using the Liferay Developer Studio simplifies the process with its dedicated Upgrade Plan feature. By following this guide, you can efficiently migrate to your codebase while minimizing downtime and compatibility issues. Always ensure to back up your project before starting the upgrade and test thoroughly at each stage.
If you are considering an upgrade from Liferay 7.x to Liferay DXP 7.4, the answer is a resounding yes; especially if you’re looking to enhance operational efficiency, deliver superior digital experiences, and streamline your business processes. Here’s a breakdown of how Liferay migration services from any Liferay 7.x to Liferay DXP 7.4 can elevate your organization:
Liferay DXP 7.4 makes leveraging analytics easier than ever:
Creating engaging and dynamic user experiences is effortless with:
Liferay DXP 7.4 is designed to simplify and enhance B2B commerce processes:
Empower business users and reduce dependency on developers with:
Cut costs and streamline your operations with features like:
Liferay DXP 7.4 supports seamless integration across enterprise systems with:
Liferay DXP 7.4 offers a robust suite of features that cater to modern enterprise needs; whether it’s delivering superior digital experiences, optimizing costs, or enhancing security. If these upgrades align with your organization’s goals, migrating to 7.4 is surely a strategic move forward.
In case you don’t want the long process to upgrade to Liferay 7.4 and still want to enjoy its robust features; we are here for you. Aixtor’s Liferay upgrade service can help your business to thrive in the latest version of Liferay. Additionally, we have a force of experienced certified Liferay developers that can deliver the desired results for you. Contact us today to get a free consultation.