Amazon’s simple storage service (S3) is a cloud-based storage solution that you can use with Documents and Media. All you need is an account, and you can store your documents to the cloud from all nodes, seamlessly.
When you sign up for the service, Amazon assigns you unique keys that link you to your account. In Amazon’s interface, you can create “buckets” of data optimized by region.
Here are the steps for configuring Liferay DXP to use your S3 account for file storage:
-
Amazon S3 requires a
SAXParser
from the application server to operate. If you are using an app server like Apache Tomcat that have one, you must include this property in asystem-ext.properties
file:org.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
-
Place your
system-ext.properties
file in a folder that resides in your Liferay DXP installation’s class path (e.g.,/WEB-INF/classes/
). -
Set the following property in a
portal-ext.properties
file in your Liferay Home folder:dl.store.impl=com.liferay.portal.store.s3.S3Store
-
Restart Liferay DXP.
-
In the Control Panel, navigate to Configuration → System Settings → File Storage.
-
In the S3 Store Configuration screen, configure the store your way.
-
Click Save.
-
Restart Liferay DXP.
Your Liferay DXP instance is using the Amazon S3 store.
Consult the Amazon Simple Storage documentation for additional details on using Amazon’s service.