Magnolia 4.5 reached end of life on June 30, 2016. This branch is no longer supported, see End-of-life policy.
Magnolia Community Edition is distributed free-of-charge and without any warranty under the terms of the GNU General Public License (version 3), a license that permits you to redistribute and modify the software under certain terms and conditions. It is important that you read the license to understand your rights and obligations.
Magnolia needs a Java Development Environment (JDK) on Windows. Use the Java Tester to check if you already have Java. The Java Runtime Environment (JRE) is not adequate because the Tomcat application server does not recognize it.
What is the difference? JRE is an implementation of the Java Virtual Machine which actually executes Java programs. JDK is a bundle of software that you can use to develop Java based applications.
If you don't have JDK yet, download and install it from http://java.sun.com/javase/downloads/index.jsp. By default JDK is installed in
C:\Program Files (x86)\java\jdk<version>. You can choose another location.
setand press ENTER.
JAVA_HOMEin the command output and verify that it matches the path to your JRE installation directory, for example
C:\Program Files (x86)\java\jre6.
JAVA_HOMEis missing or points to the wrong directory, see Set JAVA_HOME environment variable. If everything is OK, go to Download Magnolia.
JAVA_HOMEenvironment variable does not exist in User variables or System variables, create it:
JAVA_HOMEhere if you want it to apply only to the currently logged in user. These variables take precedence over system variables.
JAVA_HOMEhere if you want it to apply to all users. You must be an administrator to modify a system environment variable.
JAVA_HOMEto the path of your JDK installation directory, for example
bindirectory to the
PATHvariable, for example
C:\Program Files\magnolia\apache-tomcat-5.5.27\bin. Setting the
PATHallows you to issue the Magnolia
stopcommands from anywhere without navigating to the installation directory first. Separate the path from existing paths with a semicolon ( ; ). If you do this, you also need to add
CATALINA_HOMEto environment variables. Set the value of
CATALINA_HOMEto the Tomcat installation directory, for example
Alternatively you can set JAVA_HOME with a batch file. Add this line to
set command creates the
JAVA_HOME environment variable and sets its value to the JDK directory. The command is executed when Magnolia starts.
Download the Magnolia Tomcat bundle zip file from http://sourceforge.net/projects/magnolia/files/. This will install Tomcat servlet container, one Magnolia author instance and one Magnolia public instance. The file name depends on the release, for example
magnolia-tomcat-bundle-4.2.3-bundle-jdk15.zip. Get the latest.
Extract the zip to
C:\Program Files or another directory on your computer.
The extracted folder structure looks like this:
cd C:\Program Files\magnolia-4.2.3\apache-tomcat-5.5.27\bin)
magnolia_control.bat startand press ENTER.
INFO: Server startup in 12345 ms
To stop Magnolia, type
magnolia_control.bat stop and press ENTER.
Repeat the update on the public instance.
The AdminCentral is displayed.