Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

Code Block
languagebash
cd /usr/local
chown -R root:root omk
chmod -R 700 omk
chmod  755 omk/log
 
find /usr/local/open-audit -type f -print0 | xargs -0 chmod 664
find /usr/local/open-audit -type d -print0 | xargs -0 chmod 755 
chmod 770 /usr/local/open-audit/other/*.sh
chmod 666 /usr/local/open-audit/other/open-audit.log
chmod -R 777 /usr/local/open-audit/code_igniter/application/uploads
Change permissions
Section
Column
width40%

for Debian / Ubuntu

Code Block
languagebash
chown -R root:www-data /usr/local/open-audit

 

Column
width40%

for RedHat / CentOS

Code Block
languagebash
chown -R root:apache /usr/local/open-audit 

...

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 

...

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
width30%

for Debian / Ubuntu (prior to 14.04)

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
width30%

for Ubuntu 14.04

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

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 

...