Welcome to Centmin Mod Community
Register Now

Install Install Imunify360 on CentMinMod

Discussion in 'Centmin Mod User Tutorials & Guides' started by brijendrasial, Jan 5, 2023.

  1. brijendrasial

    brijendrasial Active Member

    151
    120
    43
    Mar 21, 2018
    Ratings:
    +184
    Local Time:
    4:33 PM
    1.13.9
    10.0.22-MariaDB
    Code:
    Install Imunify360 on CentMinMod
    git clone https://github.com/Brijendrasial/Imunify360-CMM.git
    cd Imunify360-CMM
    chmod 0777 install.sh
    ./install.sh

    Code:
    #!/bin/bash
    # Imunify360 Installer for CentMinMod Installer [CMM]
    
    # Scripted by Brijendra Sial @ Bullten Web Hosting Solutions [https://www.bullten.com]
    
    RED='\033[01;31m'
    RESET='\033[0m'
    GREEN='\033[01;32m'
    YELLOW='\e[93m'
    WHITE='\e[97m'
    BLINK='\e[5m'
    
    #set -e
    #set -x
    
    echo " "
    echo -e "$GREEN*******************************************************************************$RESET"
    echo " "
    echo -e $YELLOW"Imunify360 Installer for CentMinMod Installer [CMM]$RESET"
    echo " "
    echo -e $YELLOW"By Brijendra Sial @ Bullten Web Hosting Solutions [https://www.bullten.com]"$RESET
    echo " "
    echo -e $YELLOW"Web Hosting Company Specialized in Providing Managed VPS and Dedicated Server's"$RESET
    echo " "
    echo -e "$GREEN*******************************************************************************$RESET"
    
    
    echo " "
    
    if [ -e "/etc/centminmod" ]; then
    echo " "
    echo -e $GREEN"Centminmod Installation Detected"$RESET
    echo " "
    
    if $(nginx -V 2>&1 | tr ' ' '\n' | grep 'ModSecurity-nginx' > /dev/null); then
    echo " "
    echo -e $GREEN"Mod_Security Installation Found"$RESET
    echo " "
    $(mkdir -p /etc/sysconfig/imunify360)
    
    cat > /etc/sysconfig/imunify360/integration.conf << EOF
    [paths]
    ui_path = /usr/local/nginx/html/im360
    [web_server]
    server_type = nginx
    graceful_restart_script = /usr/local/sbin/nginx -s reload
    modsec_audit_log = /var/log/nginx/modsec_audit.log
    modsec_audit_logdir = /var/log/nginx
    [malware]
    basedir = /home
    pattern_to_watch = ^/home/.+?/(public|private)(/.*)?$
    [pam]
    service_name = system-auth
    EOF
    
    cat > /usr/local/nginx/modsec.conf << EOF
    SecAuditEngine RelevantOnly
    SecConnEngine Off
    SecRuleEngine On
    SecAuditLogFormat JSON
    # should match modsec_audit_log option in integration.conf (see below)
    SecAuditLog /var/log/nginx/modsec_audit.log
    EOF
    
    $(mkdir -p /etc/sysconfig/imunify360/generic)
    cat > /etc/sysconfig/imunify360/generic/modsec.conf << EOF
    modsecurity on;
    modsecurity_rules_file /usr/local/nginx/modsec.conf;
    modsecurity_rules_file /etc/sysconfig/imunify360/generic/modsec.conf;
    EOF
    
    echo " "
    echo -e $GREEN"All Configguration Files Created. Now We Will Process The Installation"$RESET
    echo " "
    echo -e $GREEN"Downloading Imunify360 Installer"$RESET
    echo " "
    wget https://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh -O i360deploy.sh
    echo " "
    echo -e $GREEN"Executing Installer now"$RESET
    echo " "
    bash i360deploy.sh
    echo " "
    echo -e $GREEN"Installation Successfull"$RESET
    echo " "
    echo -e $GREEN"You Can Now Open http://$(hostname -I | cut -d' ' -f1)/im360" And Login With Your Root Login Details.$RESET
    echo " "
    
    
    else
    echo " "
    echo -e $RED"Please Install Mod_Security First By Adding NGINX_MODSECURITY='y' to /etc/centminmod/custom_config.inc Aand Compiling Nginx Again "$RESET
    echo " "
    fi
    else
    echo " "
    echo -e $RED"Centminmod Installation Not Found"$RESET
    echo " "
    fi 


     
    Last edited: Jan 5, 2023
  2. eva2000

    eva2000 Administrator Staff Member

    49,737
    11,437
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,772
    Local Time:
    9:03 PM
    Nginx 1.21.x
    MariaDB 10.x
  3. brijendrasial

    brijendrasial Active Member

    151
    120
    43
    Mar 21, 2018
    Ratings:
    +184
    Local Time:
    4:33 PM
    1.13.9
    10.0.22-MariaDB
    Hello,

    Yes its paid imunify360. This is amazing software to fight malware and nearly all my client uses it. This provides overall security for web application. If anyone wants to buy it can buy from https://cplicense.net/imunify360-license/
     
  4. eva2000

    eva2000 Administrator Staff Member

    49,737
    11,437
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,772
    Local Time:
    9:03 PM
    Nginx 1.21.x
    MariaDB 10.x
    Thanks for the clarification. Heard good things about it but haven't tried it myself.
     
  5. brijendrasial

    brijendrasial Active Member

    151
    120
    43
    Mar 21, 2018
    Ratings:
    +184
    Local Time:
    4:33 PM
    1.13.9
    10.0.22-MariaDB
    Its time to try eva :)
     
  6. eva2000

    eva2000 Administrator Staff Member

    49,737
    11,437
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,772
    Local Time:
    9:03 PM
    Nginx 1.21.x
    MariaDB 10.x
    They have 55% discount right now! How does it interact with CSF Firewall?
     
  7. brijendrasial

    brijendrasial Active Member

    151
    120
    43
    Mar 21, 2018
    Ratings:
    +184
    Local Time:
    4:33 PM
    1.13.9
    10.0.22-MariaDB
  8. eva2000

    eva2000 Administrator Staff Member

    49,737
    11,437
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,772
    Local Time:
    9:03 PM
    Nginx 1.21.x
    MariaDB 10.x
    Cheers. So for Centmin Mod, I assume all I need is a single user license?
     
  9. brijendrasial

    brijendrasial Active Member

    151
    120
    43
    Mar 21, 2018
    Ratings:
    +184
    Local Time:
    4:33 PM
    1.13.9
    10.0.22-MariaDB
    you are absolutely right. No matter how many sites you have just a single site license will do the job :)
     
  10. eva2000

    eva2000 Administrator Staff Member

    49,737
    11,437
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,772
    Local Time:
    9:03 PM
    Nginx 1.21.x
    MariaDB 10.x
    Thanks. Hmm even with 55% discount, it's still US$90/yr or US$150/yr full price. Not sure how many Centmin Mod users would fork out for it and justify my time and $$$ to integrate/test with Centmin Mod? Might try the 30 day free trial first and see.
     
  11. brijendrasial

    brijendrasial Active Member

    151
    120
    43
    Mar 21, 2018
    Ratings:
    +184
    Local Time:
    4:33 PM
    1.13.9
    10.0.22-MariaDB
    Well its worth integrating eva. I have been using it for multiple clients for sometime and it justify the price. Few clients also came in and asked to integrate as they find it very useful. The biggest issue is wordpress getting hacked day by day and malware getting uploaded by hacker. Its build in functions are worth to try. So please get a trial license and use it you will see that too.