Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How to change Web ID of an existing portal instance
I have an existing portal instance with some virtual host 'aa.bb.com'. By mistake, I kept the Web ID value incorrectly. Now the Web ID is read-only. How to change the Web ID ?
Hi,You can use this for updating company Information
CompanyLocalServiceUtil.updateCompany(companyId, virtualHostname, mx, maxUsers, active)
.
Is it OK if I just change it via DB query?
Rajeev K:
Canonical answer: https://liferay.dev/blogs/-/blogs/understanding-liferay-s-database
Is it OK if I just change it via DB query?
You shouldn't. Use the API.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™