How to Install Imunify360 on cPanel and DirectAdmin (Step by Step)

Key points
- Imunify360 adds a firewall, a web application firewall, malware scanning and patching of known CMS flaws to a hosting server.
- One installer works for both cPanel and DirectAdmin:
i360deploy.sh, run as root with your license key. - ImunifyAV is the free scanner-only version, installed with
imav-deploy.sh. - After installing, review the firewall ports. In strict mode only listed ports work, including outbound ones.
To install Imunify360 you need one script and a license, but a few settings decide whether the result protects you or gets in your way. Shared hosting servers get attacked all day: password guessing on login pages, uploads of web shells into old WordPress plugins, scans for exposed admin panels. Imunify360 bundles the defences against most of this into one package that plugs into cPanel and DirectAdmin. This guide covers installing it from scratch, the free alternative, and the settings to check before you call the job done.
What you need before you start
- Root SSH access to the server.
- cPanel/WHM or DirectAdmin already installed and working.
- A 64-bit x86_64 server with at least 1 GB of RAM and 20 GB of free disk space.
- A supported OS: AlmaLinux, Rocky Linux or CloudLinux 8–10, Ubuntu 20.04–24.04, or Debian 11–13, among others.
- A license: either a key, or an IP-based license tied to the server’s address.
Take a snapshot or backup first. The installer changes the firewall, the web server’s security modules and several system services.
Step 1: Download the installer
Log in as root and fetch the deployment script:
cd /root
wget https://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh -O i360deploy.shStep 2: Run it with your license
# License key
bash i360deploy.sh --key YOUR_KEY
# IP-based license (the server's IP is already licensed)
bash i360deploy.shThe script detects whether the server runs cPanel or DirectAdmin and installs the matching integration. It takes several minutes; the first full malware scan starts afterwards in the background. To see all options, run bash i360deploy.sh -h.
If you installed without a key and want to add it later:
imunify360-agent register YOUR_KEYStep 3: Open the dashboard
- cPanel: in WHM, open Plugins → Imunify360.
- DirectAdmin: log in as admin and open Imunify360 from the extra features / plugins area.
On DirectAdmin, if the Imunify page stays blank, the PHP function proc_open is probably disabled. Remove it from disable_functions in the php.ini used by the panel and try again.
Check the service from the command line as well:
systemctl status imunify360
imunify360-agent versionThe free option: ImunifyAV
If you only want malware scanning without the firewall, install the free ImunifyAV instead:
wget https://repo.imunify360.cloudlinux.com/defence360/imav-deploy.sh -O imav-deploy.sh
bash imav-deploy.shImunifyAV finds infected files and reports them. Automatic cleanup, the web application firewall and the intrusion blocking are part of the paid Imunify360.
Step 4: Check the firewall ports
This is the step that causes the most trouble after an install. Under Settings → Firewall → Ports, Imunify360 can run in “All close, except specified” mode. In that mode a port works only if it is listed, and the lists apply to outbound traffic too.
| Symptom | Port to add (outbound TCP) |
|---|---|
| WHMCS or a panel says every domain is “unavailable” | 43 (WHOIS) |
| Outgoing mail fails | 25, 465, 587 |
| Remote MySQL or backup target unreachable | The port of that service (3306, 22…) |
Remember that a listed port is an open port. To close something, such as SIP on 5060, remove it from the list instead of adding it. Repeat the change on the IPv6 tab and press Apply on each.
Step 5: Settings worth changing on day one
- Malware cleanup: turn on automatic cleanup for detected files, with backups kept so you can restore a false positive.
- Proactive Defense: start in log mode for a few days, then switch to kill mode once you have checked it does not block your own scripts.
- Whitelist your office IP so a mistyped password does not lock you out of the panel.
- fail2ban: expect it to be disabled; Imunify360 replaces it. CSF can stay and is integrated.
Uninstalling
If you need to remove it, the same script does the job:
bash i360deploy.sh --uninstallNext steps
Imunify360 protects the hosting layer, but the server itself still needs updates, SSH keys and backups. Our Linux VPS security checklist covers those, and pairs well with CloudLinux on shared hosting servers. If you need a server to run a control panel on, our VPS plans come with full root access.