Get your git url from
$ rhc show-app magnoliacms
Or from your Openshift web console.
git clone your-git-url to copy the repository locally.
Download Magnolia CMS WAR from SourceForge (choose magnolia-bundled-webapp)
Next, remove the src folder and pom.xml file from the Git repository, as we will be deploying the WAR file.
Copy Magnolia CMS WAR to webapps
$ cd webapps $ mv magnolia-5.0.4.war ROOT.war
Set unpackWARs to True
According to the Tomcat documentation:
To override this value, we have to update the .openshift/config/server.xml file. OpenShift gives you the flexibility to override or update Tomcat configuration files. Update server.xml as shown below. Change