The 5.7 branch of Magnolia reached End-of-Life on December 31, 2023, as specified in our End-of-life policy. This means the 5.7 branch is no longer maintained or supported. Please upgrade to the latest Magnolia release. By upgrading, you will get the latest release of Magnolia featuring significant improvements to the author and developer experience. For a successful upgrade, please consult our Magnolia 6.2 documentation. If you need help, please contact info@magnolia-cms.com.
Multiple public instances are useful when you want to:
- Publish one part of a site to a different public instance.
- Manage multiple sites in one author instances and publish each site to a dedicated public instance.
- Add more public instances to cope with high load.
- Add more public instances to ensure high-availability.
You must have a Magnolia Enterprise license to be able to configure multiple working public instances.
Copying a public instance
The simplest way is to create a new public instance is to copy an existing one.
Before you do this, back up the
webapps folder and the database. There is always the risk of corrupting the existing instance.
- Stop both your Public and Author instances.
- Copy a public instance folder such as
magnoliaPublic. If you use an external database such as MySQL, copy the database folder too. - Rename the copied folder to
magnoliaPublic2. - Delete unnecessary subfolders from the copy. The copy is a clone of the source instance. Some folders are essential to the new instance but others can be deleted.
- OK to delete:
cachecontains cached entries of the original instance.logscontains log entries of the original instance. Empty log files will be recreated during server startup.indexsubfolders in each/repositories/magnolia/workspaces/*folder. Deleting the subfolders reindexes therepositories. The rest of therepositoriesfolders should remain intact.tmpis a temporary folder which Tomcat or Jackrabbit uses for its processes during export/import.
- Do not delete:
docrootcontains the TomcatdocBasestatic resources.META-INFtemplatescontains static resources.WEB-INF
- OK to delete:
- If you use an external database such as MySQL, connect the new instance to its database location. Edit the Jackrabbit configuration XML file in
/webapps/magnoliaPublic2/WEB-INF/config/repo-conf. Each database has a file of its own, edit the file that you have configured inmagnolia.propertiesin themagnolia.repositories.jackrabbit.configparameter. For example, if you use MySQL then editjackrabbit-bundle-mysql-search.xml.Add the connection information twice: once for the
workspacesection and once for theversioningsection in the XML file.
You can also include a custom XML configuration file for your database. For more information, see Content storage and structure, Configuration and Setting up a Jackrabbit persistence manager. - If you use an external database, set the persistence manager also for each workspace. Workspace configuration XML files are in
/<contextPath>/repositories/magnolia/workspaces/<workspace>/workspace.xml.
The MySQL InnoDB storage engine is supported by Magnolia. InnoDB is the default engine in MySQL 5.5+. The MyISAM engine is not supported.
- Start Magnolia.
- On the author instance, configure the new public instance as a receiver.
Node name | Value |
|---|---|
| true | |
| true | |
Other ways to create a public instance
Other ways to create new public instances:
- Backup module. Use the Restore function. This creates a new public instance for the restored data automatically.
- Backup and restore JSP scripts. The Packager module is also useful here.
- Synchronization module. Create new public instances without shutting down existing ones.
- Programmatically by writing a
cloneInstanceCommand. - How to replicate a public instance lists many options to repair a broken public instance using a second instance.
- Jackrabbit DataStore for blobs in special cases.


