| Your Rating: |
![]() ![]() ![]() ![]()
|
Results: |
![]() ![]() ![]() ![]()
|
9 | rates |
Intro
Like any system, Magnolia has a number of concepts you should be aware of before you get started with installations.
- usually, Magnolia is set up in such a way that you have one instance running as the authoring system, one as the public system. This provides flexibility, scalability and security.
- if an instance is author or public is determined by a setting in the Config GUI. Setting isAdmin to true will generally let you edit pages etc.. Set it to false for public instances - see Changing an author instance into a public instance
- to get content from the authoring instance to the public instance(s), you use a mechanism called "activation", which is executed from the GUI. Activation pushes content from the source instance (the one you are using when you click activate) to its subscribers
- there can be any number of subscribers. Subscribers are configured through the GUI (see Config:/server/activation/subscribers). Usually, there is one subscriber only, called the "public instance"
- Magnolia is delivered as a single war file which per default is set up as "authoring" (note that Magnolia provides also the bundled version (or in form of installer) with Tomcat as an application server including all add-ons. There are also preconfigured war files for WebSphere and WebLogic).
- to add a public instance, read below.
- you control the public instance from the author environment through means of activating content from the author environment to its subscriber(s)
- note that this guide describes the default configuration using DerbyPersistenceManager. If you would like to use another persistence manager and database as a backend you should do this before you install Magnolia. The are a few pages at the wiki which describes this process.
For a more detailed perspective for Magnolia newbies, see Newbie perspective
Part I - Prepare Jboss
Configure Magnolia JAAS login modules
- Open JBOSS_HOME/server/default/conf/login-config.xml.
- Add following login modules in login-config.xml under <policy>, sequence of login modules configured in this file does not matter.
<!--
magnolia JAAS login modules
-->
<application-policy name="magnolia">
<authentication>
<login-module code="info.magnolia.jaas.sp.jcr.JCRAuthenticationModule"
flag = "requisite" />
<login-module code="info.magnolia.jaas.sp.jcr.JCRAuthorizationModule"
flag = "required" />
</authentication>
</application-policy>
<!--
jackrabbit JAAS login modules
-->
<application-policy name="Jackrabbit">
<authentication>
<login-module code="org.apache.jackrabbit.core.security.SimpleLoginModule"
flag = "required" />
</authentication>
</application-policy>
assign desired memory
- Set JAVA_OPTS in JBOSS_HOME/bin/run.conf
- Configure this under the section "# Specify options to pass to the Java VM."
e.g.
JAVA_OPTS="-server -Xms256m -Xmx1024m -Dsun.rmi.....
Part II - Install Author Environment
- Download a copy of magnolia-enterprise-webapp-3.0.x.war from download.magnolia-cms.com
- Unzip content.
- Add a jboss-web.xml file to the WEB-INF directory with the following (modify the context-root value as appropriate):
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>/magnoliaAuthor</context-root> </jboss-web>
- Copy/Move exploded WAR with jboss-web.xml to your Jboss deploy directory (JBOSS_HOME/server/default/deploy), making sure that the directory name ends with '.war'.
- Start Jboss.
NOTE When Magnolia is started for the first time without a repository, it will bootstrap. This process takes a few minutes. Once finished you should see in your console a message like
Started in xxx
Now you should be able to log in, open a browser and connect to
http://localhost:8080/magnoliaAuthor/
with user: superuser and pw: superuser (modify URL based on context-root value in jboss-web.xml file)
Part III - Public Environment
Perform the same steps as above but modify the context-root value and the exploded war directory name to be something appropriate like /magnoliaPublic and public.war respectively.
Once the public bootstrapping of the repository has finished you will need to modify a few settings via adminCentral.
Firstly, log in as superuser/superuser on magnoliaPublic e.g. visit: http://localhost:8080/magnoliaPublic and follow the guide of Changing an author instance into a public instance.
NOTE You will need to modify the subscriber details in the Author environment to match the details of the public instance if you used another name of public instance.
Paul Feaviour
In its previous incarnation on JspWiki, this page was last edited on Apr 4, 2007 3:13:46 PM by Magnolia
Other known authors include :
