Easy Installation of ImunifyAV Free Virus Scanner (No SSL!)

Easy Installation of ImunifyAV Free Virus Scanner (No SSL!!!) https://www.imunify360.com

  1. Download the deployment:

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

  1. Create folders. The location is separate, so as not to be backed up:

mkdir -p /etc/sysconfig/imunify360/
mkdir -p /var/www/vhosts/imav/imav.example-hosting.com/html/imav/

  1. Create an integration.conf file, write paths and PAM:

cat > /etc/sysconfig/imunify360/integration.conf << EOF
[paths]
ui_path = /var/www/vhosts/imav/imav.example-hosting.com/html/imav

[PAM]
SERVICE_NAME = system-auth
EOF

  1. Installing:

bash imav-deploy.sh

  1. For apache2 prescribe:

cat > /etc/apache2/conf.d/imav.conf << EOF
Alias /imav /var/www/vhosts/imav/imav.example-hosting.com/html/imav

<Directory /var/www/vhosts/imav/imav.example-hosting.com/html/imav/>
Order Deny,Allow
Deny from all
Allow from all

EOF

  1. For nginx prescribe:

cat > /etc/nginx/conf.d/imav.inc << EOF
location /imav {
alias /var/www/vhosts/imav/imav.example-hosting.com/html/imav/;
location ~ ^/imav/(..php)$ {
alias /var/www/vhosts/imav/imav.example-hosting.com/html/imav/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
location ~
^/imav/(.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
alias /var/www/vhosts/imav/imav.example-hosting.com/html/imav/$1;
}
}
EOF

  1. Restarting services:

systemctl restart apache2 nginx

And enter under the root:

http://IP_server/imav

Login only from clean computers. http login is not encrypted !!!

After the update, the web panel stopped opening. You need to write the command:

sed -i 's/<base href=".\/">/<base href="\/imav\/">/g' /var/www/vhosts/imav/index.php