Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: removed manual sql url configuration step as that's now performed by the default schema/install file

Requirements

The individual performing this installation has some Linux experience.
Root level server access.
Pre-requisites are installed as per the RedHat/CentOS or Debian/Ubuntu guides.

...

Section
Column
width40%

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

Add the daemon

Section
Column
width40%

For Debian / Ubuntu

Code Block
languagebash
update-rc.d omkd start 20 2 3 4 5 . stop 20 0 1 6 . 
Column
width40%

For RedHat / CentOS

Code Block
languagebash
chkconfig --add omkd 

...

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 

Copy the required files into the webroot

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 

...

Code Block
languagebash
mysql -u root -pPASSWORD openaudit < /usr/local/open-audit/other/openaudit_mysql.sql
  • Setup configuration items to ensure Open-AudIT can find Open-AudIT Enterprise to display the icon links in the header of Open-AudIT. As before, replace PASSWORD with the database password that you just set.
Code Block
languagebash
mysql -u root -pPASSWORD -e "USE openaudit; DELETE FROM oa_config WHERE config_name = 'maps_url'; INSERT INTO oa_config (config_name, config_value, config_editable, config_description) VALUES ('maps_url', '/omk/oae/map', 'y', 'The web server address of Maps for Open-AudIT Enterprise.');"

mysql -u root -pPASSWORD -e "USE openaudit; DELETE FROM oa_config WHERE config_name = 'oae_url'; INSERT INTO oa_config (config_name, config_value, config_editable, config_description) VALUES ('oae_url', '/omk/oae', 'y', 'The web server address of Open-AudIT Enterprise.');"

 

Note: If Open-AudIT and Open-AudIT Enterprise are installed on different servers then you'll need to change the maps_url and oae_url into absolute ones that contain the IP address.

 

...

Test the Website

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

...