This page provides information on how to install OpenCms using Tomcat and MySQL. All installation parts are described as single steps. After completing each step you are strongly advised to verify the success of your work.
Install the Java 2 SDK, version 5 or newer (from Oracle
). For details on how to install these components on your operating system, see the
documentation that comes with them. You must install the Java
SDK, not the
JRE (Java Runtime Environment) that is also available from SUN. The JRE is
not sufficient to run OpenCms! OpenCms also works with Java 1.4, but you must install the
additional Java 1.4 compatibility package for this Java version.
Important: OpenCms 7 was tested with Java 1.4, 5 (1.5) and 6 (1.6).
Please note: FreeBSD users may need to setup new entropy sources in the O/S using
rndcontrol. Otherwise the installation process may hang. For example, on a machine
with a network interface card on IRQs 9, you can execute
rndcontrol -s 9
OpenCms 7 requires a Servlet 2.4 / JSP 2.0 standards compliant container. Tomcat 5 is the reference implementation of this Standard. This release was tested with Tomcat 5.0.x and Tomcat 5.5.x. Older versions of Tomcat (4.x and earlier) do not support this newer standard and are thus not usable for OpenCms 7.
Install Tomcat from
into a folder of your choice. This is the
CATALINA_HOME folder. Don't forget to set the environment variables
Test the installation by running Tomcat in standalone mode and check the examples. Note: Tomcat
uses port 8080 in standalone mode. If you wish, you can combine the servlet-engine with a webserver
like the Apache Web Server
. Please see the documentation available with the webserver on how to combine it with your
Please note: There's an extended OpenCms documentation module available from Alkacon Software GmbH on the opencms.org website that describes how to setup OpenCms with Apache httpd and Tomcat using mod_proxy.
Please note: On Linux systems, Tomcat's JVM has to be started with the command
Install MySQL from
(see the MySQL documentation on
). On Windows-based systems MySQL has to be installed on the
C:\ drive and should be registered as service using
OpenCms can be used with MySQL 4.0, 4.1 and 5.0. For performance reasons we recommend MySQL 5.0.
Start the MySQL server by running the service (WIN32) or executing
Check that MySQL is running before you continue by starting the MySQL monitor (execute
mysql in your MySQL bin folder). The database works correctly if a MySQL prompt
appears after calling the monitor. Quit the MySQL monitor by typing exit and go to the next
Important: You will have to increase the MySQL configuration variable
max_allowed_packet located in the MySQL configuration file (usually called
my.ini). For OpenCms, the limit should be as high as possible, a setting of
max_allowed_packet=32M is recommended.
opencms.war file from the binary distribution ZIP file to
CATALINA_HOME with the real path to your Tomcat installation.
Start (or restart) Tomcat. Tomcat will now deploy the web application OpenCms.
Important: OpenCms requires that it's
*.war file is unpacked. OpenCms can not be deployed as war file only. Make sure Tomcat
does unpack the war file and creates the
CATALINA_HOME/webapps/opencms/ directory, placing the OpenCms files in this directory.
The default configuration for your Servlet containers / environment could be to not unpack the
*.war file. If this is so, you must unpack the opencms.war file manually. Use an unzip
tool for this,
*.war files are just
*.zip files with a different extension. The OpenCms setup wizard will display a
warning and not allow you to continue if you did not unpack the
Start the Setup-Wizard by pointing your webbrowser to
http://localhost:8080/opencms/setup/. Depending on your configuration, you have to
localhost with your servername. The port 8080 is only used if you start Tomcat in
Follow the instructions of the OpenCms Setup-Wizard. It will set up the OpenCms database and import all available modules into the system. For normal installations with MySql and Tomcat running on the same server, all default settings will fit your needs. If you are using different database users, be sure that they exist before creating the database tables and importing the modules.
Now your system is ready to use. You can login with username:
Admin and password:
admin. Please change this password as soon as possible. The login URL of OpenCms in a
default configuration is:
Finally after you have installed OpenCms you should have a look at the security settings.
First change the
Admin user password of OpenCms by calling the user preferences (the "checkbox" icon in
the top menu on the main screen of the Workplace).
Then you can add a password to the MySQL database. Enter the following commands at the MySQL command line.
insert into user values ('localhost', 'opencmsuser', password('XXXXX'),\
insert into db values ('localhost', 'opencms', 'opencmsuser',\
Make sure you replace
opencms with the name of your user and database in case you have changed them on the
Don't forget to add the new user and password to all connect strings of the database in your
opencms.properties file. Only the new user can now connect to the OpenCms tables. For
more information see the MySQL documentation.
Feb 15, 2017 - OpenCms 10.5.1 is a maintenance update that fixes several issues that persisted in the 10.5.0 release. This version focuses on security and stability, also adding some new features and enhancements. It also ships an optimized version of the Apollo Template. Based on Bootstrap, the Apollo Template is fully customizable without coding.
Feb 15, 2017 - The OpenCms 10.5.1 release notes contain detailed information about the new features and fixes in this version.
Dec 9, 2016 - OCEE 5.5.0 supports OpenCms 10.5.0 and brings seveal improvements to the LDAP Connector. It also adds more shell commands for remote cluster administration, and fixes some issues. Updated OCEE packages for 10.0, 9.x and 8.x based OpenCms installations are also available.
Nov 30, 2016 - OpenCms 10.5 focuses on site localization, adding tools for assisted translation of pages and sitemaps. Many usability improvements have been made for the Page Editor and the Explorer. OpenCms 10.5 also ships a much improved version of the Apollo Template. Based on Bootstrap, the Apollo Template is fully customizable without coding.