Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: adjusted database instructions to mention password settable earlier, also removed :8042 test visit as per OMK-330

Requirements

The individual performing this installation has some Linux experience.
Root level server access.
Pre-requisites are installed as per the RedHat/CentOS or Debian/Ubuntu guides.

...

Section
Column
width40%

for Debian / Ubuntu

You need to comment out the lines (nano /etc/init.d/omkd)

Code Block
languagebash
. /etc/init.d/functions     # RedHat/CentOS only
 
lockfile=/var/lock/subsys/$prog     # RedHat/CentOS only

        killproc $prog           # Redhat/CentOS only

and uncomment (remove the # from the front of the line) the lines below them

Code Block
languagebash
# . /lib/lsb/init-functions # Debian/Ubuntu only
 
# lockfile=/var/lock/$prog           # Debian/Ubuntu only
 
        #pkill $prog              # Debian/Ubuntu only 
Column
width40%

for RedHat / CentOS - nothing required.

Add the daemon

Section
Column
width40%

For Debian / Ubuntu

Code Block
languagebash
update-rc.d omkd start 20 2 3 4 5 . stop 20 0 1 6 . 
Column
width40%

For RedHat / CentOS

Code Block
languagebash
chkconfig --add omkd 

...

Code Block
languagebash
service omkd start

Configure Apache

Test the daemon

You should now be able to point a web browser at http://SERVER:8042/omk/oae

The default credentials for the Dashboard are user: nmis, password: nm1888.

Configure Apache

Copy the apache config Copy the apache config file to the correct location and restart apache.

Section
Column
width40%

for Debian / Ubuntu:

Code Block
languagebash
cp /usr/local/omk/install/04omk-proxy.conf /etc/apache2/conf.d/
 
service apache2 restart  
Column
width40%

for RedHat / CentOS:

Code Block
languagebash
cp /usr/local/omk/install/04omk-proxy.conf /etc/httpd/conf.d/
 
service httpd restart 

Copy the required files into the webroot

Section
Column
width40%

for Debian / Ubuntu

Code Block
languagebash
cp -r /usr/local/open-audit/www/* /var/www/
chown -R root:www-data /var/www
chmod -R 755 /var/www 
Column
width40%

for RedHat / CentOS

Code Block
languagebash
cp -r /usr/local/open-audit/www/* /var/www/html/
chown -R root:apache /var/www/html
chmod -R 755 /var/www/html 

...

Section
Column
width40%

for Debian / Ubuntu

Code Block
languagebash
rm /var/www/index.html 
Column
width40%

for RedHat / CentOS

Code Block
languagebash
rm /var/www/html/index.html 

Configure MySQL

...

  • The root password for MySQL

...

  • needs to be set next; if you have used mysql_secure_installation or mysqladmin before to set the  password, then you can skip this step.

    In the command below

...

  • replace the token PASSWORD (and only the

...

  • all-uppercase token PASSWORD) with a suitable password of your choosing.
Code Block
languagebash
mysql -u root -e "USE mysql; UPDATE user set Password = password('PASSWORD') WHERE User = 'root'; FLUSH PRIVILEGES;"

...

  • Now create the Open-AudIT database and the database user to be used by the application. Make sure you replace the token PASSWORD with the actual database password that you set.
Code Block
languagebash
mysql -u root -pPASSWORD -e "CREATE DATABASE openaudit;"

mysql -u root -pPASSWORD -e "CREATE USER openaudit@localhost IDENTIFIED BY 'openauditpassword';"

mysql -u root -pPASSWORD -e "GRANT ALL PRIVILEGES ON openaudit.* TO openaudit@localhost IDENTIFIED BY 'openauditpassword';"

mysql -u root -pPASSWORD -e "FLUSH PRIVILEGES;"

Insert the database schema

Code Block
languagebash
mysql -u root -pPASSWORD openaudit < /usr/local/open-audit/other/openaudit_mysql.sql

...