RPM Installation

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

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

Download UBMoD
Install the RPM
# rpm -Uvh ubmod-x.x.x-x.el6.noarch.rpm
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 < /usr/share/doc/ubmod-x.x.x/ddl/ubmod.sql
Edit the UBMoD config file
host = localhost
dbname = ubmod
user = ubmoduser
password = password
Load in accounting log data
$ ubmod-shredder -v -s -H your.host.org -f pbs -d /var/spool/pbs/server_priv/accounting
$ ubmod-shredder -v -s -H your.host.org -f sge -i /var/lib/gridengine/default/common/accounting
$ ./shredder/bin/ubmod-slurm-helper -v
Aggregate accounting log data
$ ubmod-shredder -v -u
Set up the web application
Listen 8080
<VirtualHost *:8080>
    DocumentRoot /usr/share/ubmod/html
    <Directory /usr/share/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]
Reload the Apache configuration
# /etc/init.d/httpd reload