Versions Compared

Key

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

...

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

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 contains the correct locations for finding the OpenAudit files.

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 index.html

The index.html file (if it exists) in the webroot is not required.

...

Column
width40%

for Debian / Ubuntu

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

...

width40%

for RedHat / CentOS

...

languagebash

...

.

...

Configure MySQL

  • The root password for MySQL needs to be set next; if you have used mysql_secure_installation or mysqladmin before to set the  password, then you can skip this step.

    In the command below replace the token PASSWORD (and only the all-uppercase token PASSWORD) with a suitable password of your choosing.

...

You should now be able to access the web page at http://IPADDRESS/open-audit/index.php Assuming you can, proceed to the next section.

...

Go to the URL http://IPADDRESS/open-audit/index.php 

If you don't have a valid license, you should be able to log in to Open-AudIT at http://IPADDRESS/open-audit/index.php/login/index/main/list_groups

...

You should reset the variable "url" (sans quotes) to include this subdirectory.

For example, on the Opmantek VM you need to change the URL in the audit_subnet.sh script from

Code Block
url="http://localhost/index.php/system/add_nmap"

to

...