Can I use per-instance portal-[companyId].properties files in my enviroment?
written-by
Daniel Carrillo Broeder
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
Environment
- Liferay DXP 7.3, 7.4, Quarterly Releases
Resolution
- Although it may work in some cases, enabling
-Dcompany-id-properties=true is not supported: "As of DXP 7.3, the per-virtual instance portal properties file feature has been removed. DXP no longer applies per-instance properties from files of the format portal-[companyId].properties to instances matching the company IDs."
- Instance properties should be moved to the portal-ext.properties file:
- Remove the
-Dcompany-id-properties=true property from the Java options in the setenv.sh file.
- Consolidate all portal properties into a single portal-ext.properties file. If you are using separate properties files for different virtual instances (e.g.,
portal-<id>.properties), merge their contents into the main portal-ext.properties file. A custom prefix or suffix can be added to the moved instance properties, if needed.
- Restart the Liferay server after making these changes.
did-this-article-resolve-your-issue