Versions Compared

Key

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

...

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 

Install the Daemon

Copy the daemon startup script.

...

Edit the start up script 
Section
Column
width40%

For 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 for RedHat / CentOS - nothing required.

...

Code Block
languagebash
service omkd start
Test the daemon

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

...

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

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
restart 

Copy the required files into the webrootFor

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

...

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
html 

Note - if you are installing into a web root subdirectory, you will need to copy the files into a subdirectory. The below example is from the Opmantek virtual appliance.

Code Block
languagebash
\cp -Rf /usr/local/open-audit/www/* /var/www/html/open-audit/

...

Edit /var/www/index.php (for Debian/Ubuntu) or /var/www/html/index.php (for RedHat/CentOS) and check the lines that specify the $system_path and $application_folder. There are two lines for each variable. Ensure the windows paths are commented out by placing a # at the start of the line. The linux paths should correspond to /usr/local/open-audit/code_igniter/ (system or application).

Remove the unrequired index.html file (if it exists) from the webroot.

...

Section
Column
width40%

for Debian / Ubuntu

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

...

html 
Column
width40%

for RedHat / CentOS

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

Configure MySQL

If you have not already, set the root password for MySQL.

...