How to Deploy DotCMS to Jelastic PaaS

DotCMS is an open source enterprise class content management system that integrates the best features of content management with built in personalization. It allows you to create data structures and create relationships between them. It also allows you to create containers included in templates that generate pages.

Here is a step by step tutorial on deploying dotCMS to Jelastic PaaS. All you need is just come through these simple steps:

Create an Environment

1. Log into the Jelastic dashboard.

2. Ask Jelastic to create a new environment.

create environment

3. In the Environment topology window, select Tomcat as your application server, pick MySQL as the database you want to use and type your environment name, for example, dotcms, and click Create.

environment wizard

In a minute your environment with Tomcat and MySQL will be created.

environment for dotCMS created

Upload a Java Package

1. Navigate to dotcms.com, select Download and copy the URL of the latest dotCMS version.

dotCMS doenload

dotCMS package URL

2. Go back to Jelastic, click Upload and paste the URL you have just copied.

upload dotCMS

3. Once the package is in Jelastic, deploy it to the environment you have just created.

deploy dotCMS

Configure Database

1. Click Config button for MySQL.

MySQL config

2. In my.cnf file, type the following: lower_case_table_names=1. It makes your database case-insensitive. Click Save and Restart the database node after that.

case insensitive database

3. Click Open in Browser button for MySQL.

open MySQL in browser

4. When you created your environment, Jelastic sent you an email with credentials to the database. Create a user account and the database using these credentials.

database add user

create dedicated database

Configure DotCMS

1. Pick Config for Tomcat.

Tomcat config

2. You have to upload to the lib folder all required JAR files: MySQL connector, mail.jar, and dependence library log4j-1.2.16.jar.

upload JAR files

3. Upload dotcms_1.9.4.2.jar (it is in dotcms_1.9.4.2.zip) to webapps/ROOT/WEB-INF/lib.

upload dotCMS JAR

4. Go to Server folder and in the context.xml file, write up the database connection properties and mail settings.

database connection properties

Now you can open dotCMS in a browser and use all its functions!

dotCMS

What’s next?