Traditional installation with Apache Webserver
For OpenCms before version 10.5 we recommended the combination of Tomcat and the Apache webserver to run OpenCms.
Since 10.5 you may run OpenCms without having installed an extra webserver besides your servlet container. A newly added servlet filter does the URL rewriting formerly done by the webserver. If you want an installation without additional webserver "Installing OpenCms" is the topic of interest. You can skip all topics concered with the Apache webserver.
Do not use a shared server. OpenCms is Java-based and you need to run a JVM on the server. Furthermore, OpenCms will keep a lot of information in the memory of the server, if you want to run a well performing website. Therefore, we do not recommend using a shared server - OpenCms will constantly allocate system resources.
Memory is the most important performance factor. Memory is much more influential than CPU speed. It is recommended to have at least 2GB of memory available.
In many scenarios it will suffice if all elements of an OpenCms installation (OpenCms itself in the servlet containter, the DBMS, optionally an additional webserver) reside on one computer, or are splitted over several servers. Sites expecting heavy traffic will probably need a clustered configuration where the load is distributed across more than one OpenCms instance. For a clustered installation use the Alkacon OCEE Cluster Manager.
We only mention relevant components.
In essence, to run OpenCms you need:
- A Java Development Kit: OpenCms requires JDK 8 or higher.
- A servlet container: OpenCms runs as servlet in a servlet container. We recommend Apache Tomcat.
- A database management system: OpenCms stores all content in a database. It is best tested with MySql/MariaDB. But also other databases are supported.