Prerequisites
...
An existing (working) Open-AudIT installation.
NOTE - This guide is for upgrading an existing Linux installation to Open-AudIT 1.0.42. If you wish to install onto a clean server, use the pre-requisites prerequisites and installation guides.
NOTE - Open-AudIT 1.2 has some additional prerequisites. Please ensure you install screen, ssh-pass and samba-client via your package manager. Please also install winexe via the Suse Build Service. Details are on the prerequisites pages for RedHat/CentOS and Debian/Ubuntu.
Backup Your Existing Install
...
Copy the Open-AudIT tarball to the server (OAE-Linux-x86_64-1.02.4.tar.gz).
You may need to use SCP or FTP to get the file onto the server.
...
Code Block | ||
---|---|---|
| ||
chown -R root:root omk
chmod -R 775 omk
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
chmod 770 /usr/local/open-audit/other/discover_subnet.sh |
Change permissions for Debian / Ubuntu
...
Section | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Add the daemon
Section | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
OAE_SERVER variable - By default this should be "http://127.0.0.1/". You should not need to change this. If you do, insert the ip address of the server (127.0.0.1 or localhost are also fine) 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. On the Opmantek virtual appliance (for example) it would be http://<SERVER_IP>/open-audit/
OAE_LINK variable - By default this should be "/". You should not need to change this. 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_link variable above. On the Opmantek virtual appliance (for example) it would be "/open-audit/"" NOTE - If your Open-AudIT Enterprise and Open-AudIT installations are on the same machine, the oae_link variable should be set to only the directory of Open-AudIT. IE - if you have an Open-AudIT install in the root of your web directory, you can set the variable to "/". On the Opmantek virtual appliance it would be set to "/open-audit/".
...
If you have your web root in a subdirectory (as per the Opmantek virtual appliance), you will need to edit the "url" variable in the various script files. These files can be found in /usr/local/open-audit/other/ The files you will need to edit all begin with audit_ They include audit_linux.sh, audit_subnet.sh, audit_windows.vbs, etc, etc. The URL variable can usually be found at the top of the file.
...
Delete the old web files
The new web files
...
If your Open-AudIT install is into a subdirectory of your webroot, be sure to add that to the end of the destination of the cp command belowshould live in the subdirectory /open-audit/. We should remove the existing web files.
For Debian / Ubuntu
Code Block | ||
---|---|---|
| ||
cprm -rf /var/www/device_images rm -Rfrf /usrvar/localwww/open-audittheme-tango rm /var/www/*index.php rm /var/www/favicon.png |
For RedHat / CentOS
Code Block | ||
---|---|---|
| ||
cprm -rf /var/www/html/device_images rm -Rfrf /var/usrwww/localhtml/open-audittheme-tango rm /var/www/*html/index.php rm /var/www/html/ |
Note - if you are upgrading the Opmantek virtual appliance, you will need to copy the files into a subdirectory.
favicon.png |
Copy new web files
If your Open-AudIT install is into a subdirectory of your webroot, be sure to add that to the end of the destination of the cp command below.
For Debian / Ubuntu
Code Block | ||
---|---|---|
| ||
cp -Rf /usr/local/open-audit/www/* /var/www/html/open-audit/ |
Fix the file permissions
For Debian RedHat / UbuntuCentOS
Code Block | ||
---|---|---|
| ||
chmodcp -R 775Rf /usr/local/open-audit/www/* /var/www/html/ |
Fix the file permissions
For RedHat Debian / CentOSUbuntu
Code Block | ||
---|---|---|
| ||
chmod -R 775 /var/www/html |
For the Opmantek virtual applianceRedHat / CentOS
Code Block | ||
---|---|---|
| ||
chmod -R 775 /var/www/html/open-audit |
Restore old files (if required)
Copy any attachment files from your old to the new install.
...