facebook

How to install ImunifyAV in CyberPanel?

SSH into your CyberPanel server and execute the following command:

mkdir -p /usr/local/CyberCP/public/imunifyav

Next, run this command to download and execute the ImunifyAV deployment script:

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

It is important to note that, with the latest version of CyberPanel, the imav script is currently unable to create the necessary directory on its own. The underlying reason for this issue has not been thoroughly investigated by me nor will be. You may encounter the following warning, which is the reason for the 404 on the ImunifyAV endpoint:

[2024-09-14 09:53:08] WARNING: /usr/local/CyberCP/public/imunifyav is not a directory (it should be created by the imunify deploy script). UI will not be installed.

To resolve this issue, simply create the directory before running the script.

If you have already executed the script and need to uninstall it, you can do so with the following command:

bash imav-deploy.sh -c

Please keep in mind that if the directory was created during the previous installation, it will be removed upon uninstallation. Therefore, you will need to recreate the directory manually before running the installation script again.