Installation on AWS Amazon Linux 2

After obtaining the License Key, please follow the following steps to install IDSTower on AWS Amazon Linux 2:

  1. Add IDSTower Yum repository

$ sudo bash -c 'cat > /etc/yum.repos.d/idstower.repo << EOF
name = IDSTower
baseurl =\$basearch/
  1. Add MariaDb (10.3) YUM repository

$ sudo bash -c 'cat > /etc/yum.repos.d/mariadb.10.3.repo << EOF
name = MariaDB
baseurl =
  1. Install MySQL (MariaDb 10.3.x)

$ sudo yum install mariadb-server -y
$ sudo systemctl enable mariadb.service
$ sudo systemctl start mariadb.service
$ sudo systemctl status mariadb.service
  1. (Recommended) Run mysql_secure_installation Script

$ sudo /usr/bin/mysql_secure_installation
  1. Install Ansible 2.8+

$ sudo amazon-linux-extras install ansible2 -y
  1. Install IDSTower

$ sudo yum install idstower -y
  1. Edit the appsettings.json configuration file (located in: /opt/idstower/) and set the following settings

    • set the LicenseKey key value with the key you obtained from the license page.

    • set the URL key value with the url you want IDSTower to listen to, example: http://idstower.mydomain.local, note that you can use ip addresses as well.

    • set the MySQL Database settings like host, port, database name, username & password via the Database key.

  2. run IDSTower with –init-database option to initialize the database:

$ cd /opt/idstower/
$ sudo ./IDSTower --init-database


If you wish to initialize the database manually, you can find the schema initialization script here:

You can easily import the script by running the following command:

$ sudo mysql -u [username] -p [DatabseName] < idstower_schema_script.sql
  1. Add an admin user to IDSTower:

$ sudo ./IDSTower -a [Your Admin Username]


$ sudo ./IDSTower -a admin
  1. Enable & Start IDSTower Service

$ sudo chown -R idstower:idstower /var/log/idstower/*
$ sudo systemctl enable idstower.service
$ sudo systemctl start idstower.service
  1. Verify that IDSTower Service started correctly

$ sudo systemctl status idstower.service
  1. Now you can access IDSTower web interface using the url set in your appsettings.json