CCM Admin Installation

Prerequisites

  • java version 1.8.0
  • mysql running as a service
  • supervisord version 3.0b2

Procedure

  • Create a ccmAdmin directory
  • clone https://github.com/markfetherolf/ccmadmin.git
  • cd to the ccmadmin directory
  • enter the following (not including the "$" bash prompt): maven clean build

Configuration

Initialize database

  • cd to the ccmadmin/sql directory, enter
    mysql -u root -p
  • when prompted, enter the root password (set during mysql installation)
  • enter
CREATE DATABASE ccmadmin;
CREATE USER 'ccm'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON ccmadmin.* to 'ccm'@'localhost';
/q
  • enter
    mysql -u ccmadmin -p
  • when prompted enter the password set above
  • enter
use ccmadmin
source ccmadmin-mysql.sql
/q

Set database parameters for web application

  • cd to ccmadmin
  • edit config.properties
  • enter database access parameters, example as follows:
database.host = localhost:3306
database.user = ccm
database.password = asdf
database.name = ccmadmin
server.port = 4567

Multiple CCMAdmin Tenants

For multiple CCM Admin environments, install under separate root directories, create multiple databases, and set configuration parameters accordingly or run multiple mysql instances on different ports (other then the default 3306). Generally, the former is adequate unless a customer requires physical separation of data.