Accounting Viewer Installation
UNL has put together its own custom accounting viewer based upon the Gratia DB. This page covers its installation
- Make sure that the Nebraska YUM repository is on this machine. If it isn't, install the following RPM as root (assuming a SL5 / x86_64 machine):
rpm -i http://t2.unl.edu/store/rpms/SL5/x86_64/Nebraska-repo-0.1-1.noarch.rpm
- Install the AccountingView RPM via YUM:
yum install AccountingView
The current version as of this writing is 0.1.1-1. - Create a new database parameter file from the template:
cp /etc/DBParam_basic.xml.rpmnew /etc/DBParam.xml
Edit the newly created /etc/DBParam.xml and fill in the correct database authentication information. - Add the GratiaBasicWeb service to the startup service list:
/sbin/chkconfig --level 345 GratiaBasicWeb on
Modify the above line as desired. - Start up the web interface:
/etc/init.d/GratiaBasicWeb start
There are (unrotated) log files kept in /var/log/GratiaWeb*. This will start a service on port 8100 of the host machine. - If you want users to be able to access the web interface via the standard HTTP port (highly recommended), you'll need to create an apache redirect. Alter httpd.conf to contain:
<VirtualHost *:80>
Make sure you replace "gratia.example.com" above with the correct webserver address. Restart apache.
# Change the alias to reflect your hostname
ServerAlias gratia.example.com
ServerAdmin webmaster@example.org
ServerSignature On
LogLevel warn
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/gratia/(.*) http://localhost:8100/gratia/$1 [L,P]
</IfModule>
</VirtualHost>