...
In short, run the installer and it will take care of everything for you.
Downloading & Installing
Go to open-audit.org or www.firstwave.com and download the latest version.
...
Create the database.
| Code Block |
|---|
| breakoutMode | wide |
|---|
| breakoutWidth | 1800 |
|---|
|
mysql -u root -p -e "CREATE DATABASE openaudit;" |
Create the database user.
| Code Block |
|---|
| breakoutMode | wide |
|---|
| breakoutWidth | 1800 |
|---|
|
mysql -u root -p -e "CREATE USER openaudit@localhost IDENTIFIED BY 'openauditpassword';" |
Give the user access tot he database.
| Code Block |
|---|
| breakoutMode | wide |
|---|
| breakoutWidth | 1800 |
|---|
|
mysql -u root -p -e "GRANT ALL PRIVILEGES ON openaudit.* TO openaudit@localhost IDENTIFIED BY 'openauditpassword'; FLUSH PRIVILEGES;" |
Populate the database schema.
| Code Block |
|---|
| breakoutMode | wide |
|---|
| breakoutWidth | 1800 |
|---|
|
mysql -u root -p openaudit -e "/usr/local/open-audit/other/open-audit.sql" |
...
NOTE - Running the installer will take care of these for you.
Redhat
...
9 / 10
| Code Block |
|---|
| breakoutMode | wide |
|---|
| breakoutWidth | 1800 |
|---|
|
subscription-manager repos --enable codeready-builder-for-rhel-89-x86_64-rpms
# subscription-manager repos --enable= codeready-builder-for-rhel-8-server-optional10-x86_64-rpms
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-89.noarch.rpm
/usr/bin/crb enable
dnf -y upgrade
dnf -y module install php:8.03 --allowerasing
dnf -y install --allowerasing curl httpd ipmitool libnsl libxcrypt-compat logrotate mariadb-server net-snmp net-snmp-utils nmap perl-Crypt-CBC perl-Time-ParseDate php-cli php-fpm php-gd php-intl php-ldap php-mysqlnd php-process php-snmp php-zip samba-client sshpass wget zip
pecl
channel-update
pecl.php.net
pecl install libsodium
echo 'extension=sodium.so' > /etc/php.d/20-sodium.ini
systemctl enable php-fpm
systemctl enable httpd
systemctl enable mariadb
systemctl restart php-fpm
systemctl restart httpd
systemctl restart mariadb
chmod u+s /usr/bin/nmap
# NOTE - The user is left to configure the firewall. The installer will do this for you. |
...
Debian 12/ 13
| Code Block |
|---|
subscription-manager repos --enable codeready-builder-for-rhel-9-x86_64-rpms
subscription-manager repos --enable=rhel-9-server-optional-rpms
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
/usr/bin/crb enable
dnf -y upgrade
dnf -y module install php:8.1 --allowerasing
yum install -y curl httpd ipmitool libnsl libsodium logrotate mariadb-server net-snmp net-snmp-utils nmap perl-Crypt-CBC perl-Time-ParseDate php php-cli php-intl php-json php-ldap php-mbstring php-mysqlnd php-process php-snmp php-sodium php-xml samba-client screen sshpass wget zip
systemctl enable php-fpm
systemctl enable httpd
systemctl enable mariadb
chmod u+s /usr/bin/nmap |
Debian 11 / 12
| Code Block |
|---|
| breakoutMode | wide |
|---|
| breakoutWidth | 1800 |
|---|
|
apt-get update -qq
apt-get -yq -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install cron mariadb-server apache2 apache2-utils libapache2-mod-php openssh-client php php-cli php-curl php-gd php-intl php-ldap php-mbstring php-mysql php-snmp php-xml php-zip nmap zip wget curl sshpass screen smbclient logrotate ipmitool snmp libcrypt-cbc-perl
systemctl restart apache2
systemctl restart mysql
chmod u+s /usr/bin/nmap
dpkg-statoverride --update --add root root 4755 /usr/bin/nmap |
Ubuntu
...
24.04
| Code Block |
|---|
| breakoutMode | wide |
|---|
| breakoutWidth | 1800 |
|---|
|
apt-get update -qq
apt-get -yq -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install cron mariadb-server apache2 apache2-utils libapache2-mod-php openssh-client php php-cli php-curl php-gd php-intl php-ldap php-mbstring php-mysql php-snmp php-xml php-zip nmap zip wget curl sshpass screen smbclient logrotate ipmitool snmp libcrypt-cbc-perl
systemctl restart apache2
systemctl restart mysql
chmod u+s /usr/bin/nmap
dpkg-statoverride --update --add root root 4755 /usr/bin/nmap |