Magnolia 4.5 reached end of life on June 30, 2016. This branch is no longer supported, see End-of-life policy.
Multiple public instances are useful in many circumstances, including:
/sports
to one subscriber and /news
to another.Magnolia offers numerous ways to set up an additional public instance. The best practice depends on each use-case. The fastest and simplest way is to copy an existing, working public instance provided you have one. Before doing this, be sure to back up both the webapps
folder and the database as there is always the risk of corrupting the existing instance.
webapps
folder and database of an existing public instance. The standard installation uses an embedded Derby database so it is not necessary to locate and copy the database in this instance./cache
contains cached entries of the original instance and may be deleted./docroot
contains the Tomcat docBase
static resources and should not be deleted./logs
contains log entries of the original instance and may be deleted. The folder with empty log files will be recreated during server startup./META-INF
is a mandatory folder and should not be deleted./repositories
can be reindexed by deleting the index
subfolders in each /repositories/magnolia/workspaces/*
folder but the rest of the folders should remain intact./templates
contains static resources and should not be deleted./tmp
is a temporary folder which Tomcat or Jackrabbit uses for its processes during export/import and may be deleted./WEB-INF
is a mandatory folder and should not be deleted./webapps/magnoliaPublic/WEB-INF/config/repo-conf
. Magnolia ships with four options for persistent storage: Derby, Ingres, MySQL and in-memory. magnolia.repositories.jackrabbit.config
parameter in webapps/magnoliaPublic/WEB_INF/config/default/magnolia.properties
needs to correspond to the selected XML configuration file. Please note that connection information should to be added twice, for workspace
and versioning
in all XML files. For more information see Content storage and structure, Configuration and Setting up a Jackrabbit persistence manager. /webapps/magnoliaPublic/repositories/magnolia/workspaces/*
. /server/activation/subscribers
.Other methods to create new public instances or situations where an additional public instance is useful include:
cloneInstanceCommand
.