loading table of contents...

9.3. Linux / Unix Installation Layout

Since RPM and other native packaging formats don't just archive files but merely archive them with the target destination path, you have to think about the installation layout at build time. You will find the layout directives in the pom.xml files below the packages module hierarchy.

CoreMedia DXP 8 strives to standardize the file layout on a target machine. The table below lists the common paths where configuration, log files or scripts can be found.

Default PathUsage

/etc/coremedia

Each package will install and require a configuration property file below this folder. To reconfigure a service use the service initialization script and its reconfigure option, for example sudo service cm7-cms-tomcat reconfigure. To reconfigure a tool a shell script will be provided in the tools installation directory. Although not recommended, to change the default, modify the Maven property CONFIGURE_ROOT in the packages/pom.xml.

/etc/coremedia/APPLICATION_NAME.properties

The configuration file to configure or reconfigure a package.

/opt/coremedia

The installation directory for all CoreMedia packages. To change the default, modify the Maven property INSTALL_ROOT in the packages/pom.xml

/var/log/coremedia

The logging directory for all CoreMedia packages. To change the default, modify the Maven property LOG_ROOT in the packages/pom.xml

/var/run/coremedia

The directory where all Tomcat services will create their PID files. To change the default, modify the Maven property PID_ROOT in the packages/pom.xml

/var/cache/coremedia

The common directory where Tomcat services will create their temporary folders. To change the default, modify the Maven property TMP_ROOT in the packages/pom.xml

/var/lib/coremedia

The common directory where Tomcat services store persistent data if the data is not put into a database. To change the default, modify the Maven property DATA_ROOT in the packages/pom.xml

/opt/coremedia/cm7-tomcat-installation

The directory of the common Tomcat installation

/etc/init.d/APPLICATION_NAME

The Tomcat service file. By default, the services file defines the following methods (start, stop, status, restart, reload, reconfigure).

/var/log/APPLICATION_NAME.out

The Tomcat standard out file.

/etc/coremedia/APPLICATION_NAME.conf

The Tomcat service configuration. In this file you can modify CATALINA_HOME, CATALINA_PID, CATALINA_TMPDIR and CATALINA_OUT

Table 9.4. Default Package Layout