Note: please note that Liferay has renamed its Liferay Experience
Could offerings to Liferay SaaS (formerly LXC) and
Liferay PaaS (formerly LXC-SM).
Issue
- Customers who aren't familiar with Docker can't easily setup ClamAV in Liferay PaaS.
- How to setup ClamAV in Liferay PaaS to antivirus scan files uploaded to Liferay Documents & Media.
Environment
- Liferay PaaS
Resolution
- Contact your sales representative:
- "Customers who wish to enable the use custom services on their Liferay Cloud environments must first contact their sales representative in order to enable this functionality and ensure that their environments are provisioned accordingly."
- Ensure that sufficient resources are available (i.e. memory and CPU) for the custom service to run. Check with the sales representative if unsure of the quotas available.
- Add the Custom Service definition in the Liferay PaaS Liferay Workspace repository. Create a new folder called antivirus in the root of the repository (at the same level as the other service folders) and within it upload the attached LCP.json file.
- Add the following portal property (either in a properties file in the Liferay PaaS Liferay Workspace repository or as an Environment variable within the environments Liferay service (using the appropriate naming syntax): dl.store.antivirus.enabled=true
- Deploy the newly created build that contains the changes above to the target environment and verify that all of the services start as expected.
- Login as an Omni Administrator and go to Control Panel > System Settings > Security > Antivirus > Antivirus Clamd Scanner, enter the hostname as antivirus and Save. (This assumes the service name is antivirus and the service is using the default port of 3310.)
- Test that files can be uploaded successfully and review the Liferay DXP service logs etc.
NOTE: Liferay Support does not recommend or endorse specific third-party products over others. The information provided about products not created by Liferay is for reference purposes only, and any implementation of these principles will be at your team's discretion.
Additional Information
-
ClamAV (review the ClamAV documentation for antivirus definition update handling):
-
Liferay ClamAV Setup:
-
Liferay PaaS Adding Custom Service:
https://learn.liferay.com/w/liferay-cloud/platform-services/using-a-custom-service
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In