This document will attempt to outline a basic install of UBMoD.

This installation document assumes you are running a Linux system and already have Apache, PHP, Perl and MySQL installed and running.

Download UBMoD
$ tar -xvzf ubmod-x.x.x.tar.gz
$ cd ubmod-x.x.x
Set up the MySQL database
mysql> create database ubmod;
mysql> grant all on ubmod.* to ubmoduser@localhost identified by 'password';
mysql> quit;

$ mysql -u ubmoduser -p ubmod < ./ddl/ubmod.sql
Create the UBMoD config file
host = localhost
dbname = ubmod
user = ubmoduser
password = password
Load in accounting log data
$ ./shredder/bin/ubmod-shredder -v -s -H -f pbs -d /var/spool/pbs/server_priv/accounting
$ ./shredder/bin/ubmod-shredder -v -s -H -f sge -i /var/lib/gridengine/default/common/accounting
$ ./shredder/bin/ubmod-slurm-helper -v
Aggregate accounting log data
$ ./shredder/bin/ubmod-shredder -v -u
Set up the web application
Listen 8080
<VirtualHost *:8080>
    DocumentRoot /path/to/ubmod/html
    <Directory /path/to/ubmod/html>
        RewriteEngine On
        RewriteRule ^api/rest/(.*)$ api/rest/index.php?path_info=$1 [L,QSA]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ index.php?path_info=$1 [L,QSA]