Prerequisites
...
This will be required later, so make a note of it now.
Installation Steps
All local commands should be run as root.
...
Code Block | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
chown -R root:www-data /usr/local/open-audit |
Change permissions for RedHat / CentOS
Code Block | ||
---|---|---|
| ||
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.
...
language | bash |
---|
...
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 | ||
---|---|---|
| ||
cp /usr/local/omk/install/04omk-proxy.conf /etc/apache2/conf.d/ service apache2 restart |
...
Code Block | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
\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 | ||
---|---|---|
| ||
chmod -R 775 /var/www/ |
For RedHat / CentOS
Code Block | ||
---|---|---|
| ||
chmod -R 775 /var/www/html |
Remove the unrequired index.html file (if it exists) from the webroot.
For Debian / Ubuntu
Code Block | ||
---|---|---|
| ||
rm /var/www/index.html |
...