Versions Compared

Key

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

...

Code Block
languagebash
chown -R root:root omk
 
chmod -R 775 omk
 
chown -R root:www-data /usr/local/open-audit
 
chmod -R 770 /usr/local/open-audit
 
chmod -R 777 /usr/local/open-audit/code_igniter/application/views/lang/

chmod 770 /usr/local/open-audit/other/audit_linux.sh
 
chmod 770 /usr/local/open-audit/other/audit_subnet.sh
 
chmod 660 /usr/local/open-audit/other/open-audit.log  

Change permissions for Debian / Ubuntu

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

 Change permissions for RedHat / CentOS

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

Change into the /usr/local/omk directory.

...

Edit the "openauditenterprise" section and insert the actual ip address of the server (not 127.0.0.1 or localhost) in to the oae_server variable (along with http:// and don't forget the trailing /). If you have Open-AudIT installed into a sub directory in your web root, be sure to add that to the end of the oae_server variable above. For our  On the Opmantek virtual appliance (for example) it would be http://<SERVER_IP>/open-audit/

...

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

Configure Apache

Edit the file /usr/local/omk/install/04omk-proxy.conf and insert the ip address of the server into the relevant "location" sections (replacing <SERVER>). Make sure you don't use 127.0.0.1.

...

languagebash

...

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

Configure Apache

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

For Debian / Ubuntu:

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

...

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

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/

Ensure index.php is pointed at the correct location.

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).

Fix the file permissions

For Debian / Ubuntu

Code Block
languagebash
chmod -R 775 /var/www/

For RedHat / CentOS

Code Block
languagebash
chmod -R 775 /var/www/html

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

For Debian / Ubuntu

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

...