Install ImunifyAV (free version) in any Linux web server

(1) You need to configure a domain/subdomain in a webserver to setup the ImnuifyAV.

Doest not matter if you have a domain or not. You can use a fake fqdn domain under any http server (nginx, apache etc) and just force your hosts file to resolve to the server.

(2) Create the file /etc/sysconfig/imunify360/integration.conf (if the path does not exist, please create)

The content must have:

[paths]
ui_path = /home/website/web.site.com/public_html/
ui_path_owner = website:website

[pam]
service_name = system-auth

[integration_scripts]
users = /root/get-users-script.sh
domains = /root/get-domains-script.sh
admins = /root/get-admins-script.sh

Fix the right path where you will install the imunify webgui. And configure which user will run that gui.

(3) Then we need to create the above shell scripts that will be used by ImunifyAV.

/root/get-users-script.sh:

#!/bin/bash

echo "{
  \"data\": [
    {
      \"id\": 1000,
      \"username\": \"admin\",
      \"owner\": \"root\",
      \"package\": {
        \"name\": \"package\",
        \"owner\": \"root\"
      },
      \"email\": \"YOUR_EMAIL\",
      \"locale_code\": \"EN_us\"
    }
  ],
  \"metadata\": {
    \"result\": \"ok\"
  }
}"

Note: Check the user id of admin user or change the user and the id that you want to use. You need to create the user if the user does not exist. Also change the “YOUR_EMAIL” config.

/root/get-domains-script.sh:

#!/bin/bash

echo "{
  \"data\": {
    \"web.site.com\": {
      \"document_root\": \"/home/website/web.site.com/public_html/\",
      \"is_main\": true,
      \"owner\": \"admin\"
    }
  },
  \"metadata\": {
    \"result\": \"ok\"
  }
}"

Make sure that document_root will be the same of the of integration.conf file. And do not forget to change web.site.com to your FQDN domain.

/root/get-admins-script.sh:

#!/bin/bash

echo "{
  \"data\": [
    {
      \"name\": \"admin\",
      \"unix_user\": \"admin\",
      \"locale_code\": \"EN_us\",
      \"email\": \"YOUR_EMAIL\",
      \"is_main\": true
    }
  ],
  \"metadata\": {
    \"result\": \"ok\"
  }
}"

Change the YOUR_EMAIL config and make sure you set the name user that you configured in the other files.

(4) Install ImunifyAV (free and stable version)

wget https://repo.imunify360.cloudlinux.com/defence360/imav-deploy.sh -O imav-deploy.sh
bash imav-deploy.sh

(5) Now you can access your configured domain. Use the Linux user credentials that you configured in the .sh files. You can also use ImunifyAV through command line if you want.

Notes:

  • To update the ImunifyAV, please check the official “installation” doc.
  • To remove, same thing.

ImunifyAV docs: