Install Imunify360

wget http://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh
bash i360deploy.sh --key

yum update imunify360-firewall --enablerepo=imunify360-testing

Use both Comodo and Imunify360 rules

Set LF_MODSEC variable to “0” in CSF config.

If you have trouble with Imunify360 and would just like to temporarily disable it:

systemctl stop imunify360
systemctl stop imunify360-captcha
systemctl disable imunify360

If you Imunify360 services are stopped and you would like to have them running again:

systemctl start imunify360
systemctl start imunify360-captcha
systemctl enable imunify360

If you would like support from CloudLinux (developers of Imunufy360), add the following SSH key to your server, as well as whitelist their IPs in your firewall

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEA0kzTrtnpG3awsKlQRzo8tLzG0Rb93XO6plRtFsVmAtqyuk1nfwC36ISL+AT2+r4+xuZiK8taVgbPVDU/+dHD3ObMQPIvIZOvQWGZH0zZApeXfbKD3DaLfh5aQeI9kbeo3cGQufFIxTkSLVXHTmjISf3gggP7m17hI4jxiu5Gaw/lNwlrQtsBgyEsF4+Y5jSOn1fMkx+R//8ul6L97EBEIGA9Pzcy4tHtTCNxfAGOmUmx8ijnieqNb95wxU5hrhirmWbICeMkgECEsIOPkweWoBNmrVxAigSQuM0uJZeFl5x2I5KaocmXbpeswDCWjGCtEDjcY9WqBSGehuUxArZvGEcaeJ+AM+xIlr0yPTx+3y4JsN/hluzRX9vbuzBZxhctP0BALu8uXKjYvJr9STU0umNZrRHBBQKCIF16FPwcJ7d+H4KYFvxOiVTDKtIZJ5gCtp/nUtVeQFUPEwgirgypP4hv3gkE73A+2vl3lwZ1p2YBmzzbAOpeXDtDFNSpK6Kfa7ujK70ouM0EDptPe/aGJMuDet7RGlnn/zQdpXrCLpUZSVrsTFjN+NZ6uTah5r5QsOhTpL1IoD+FrW9ovgr6KwtM6rl/XKzrzmbnQGaGQY5h5Kan2a0Y24eIXm5MnncOgwZZUCpT7SV2b7cjASf5xMfU87Ihe3c/Vmi33pblD8E= [email protected]

69.175.106.198 # CloudLinux
69.175.3.6 # CloudLinux

Install Engintron

Install

cd /; rm -f engintron.sh; wget --no-check-certificate https://raw.githubusercontent.com/engintron/engintron/master/engintron.sh; bash engintron.sh install

# === FOR USE WITH CLOUDFLARE ===
#
#
a) If your server has a single shared IP ONLY and you wish to use CloudFlare for any (or all) of your sites
# you will have to specify this shared IP address below otherwise you'll get errors from CloudFlare.
# This change will simply tell Nginx to skip DNS resolving and simply forward traffic to the shared IP.
# Uncomment the following line if all your sites on the shared (main) IP of your server are on CloudFlare:
#
set $PROXY_DOMAIN_OR_IP "xx.xx.xxx.xxx"; # Use your cPanel's shared IP address here

Uninstall

bash /engintron.sh remove

Install SiteMush

wget -N http://files.sitemush.com/install.sh
chmod 755 install.sh
./install.sh

/usr/local/cpanel/bin/unregister_cpanelplugin /usr/local/sitemush/panels/cpanel/sitemush.cpanelplugin;
rm -rf /etc/cron.d/sitemush;
rm -rf /usr/local/cpanel/whostmgr/cgi/sitemush;
rm -rf /usr/local/sitemush;
rm -rf /usr/local/cpanel/whostmgr/cgi/addon_sitemush.php;
rm -rf /usr/local/cpanel/whostmgr/cgi/addon_sitemush.cgi
rm -rf /usr/local/cpanel/base/frontend/x3/dynamicui/dynamicui_sitemush.conf;
rm -rf /usr/local/cpanel/base/frontend/paper_lantern/dynamicui/dynamicui_sitemush.conf;

Enable mod_lsapi

1) yum install liblsapi liblsapi-devel mod_lsapi
2) /usr/bin/switch_mod_lsapi --setup
3)
a)# Enable for a single domain:
/usr/bin/switch_mod_lsapi --enable-domain [domain]
b)# or globally
switch_mod_lsapi --enable-global
4) service httpd restart
5) switch_mod_lsapi --build-native-lsphp

You can check if mod_lsapi is loaded by running:
httpd -M| grep lsapi
lsapi_module (shared)

/usr/bin/switch_mod_lsapi --uninstall

Note: CloudLinux will need to already be installed for this to work.

Install Softaculous

Install Softaculous

wget -N http://files.softaculous.com/install.sh
chmod 755 install.sh
./install.sh

Uninstall Softaculous

/usr/local/cpanel/bin/unregister_cpanelplugin /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/softaculous.cpanelplugin;
rm -rf /etc/cron.d/softaculous;
rm -rf /var/softaculous;
rm -rf /usr/local/cpanel/whostmgr/cgi/softaculous;
rm -rf /usr/local/cpanel/whostmgr/cgi/addon_softaculous.php;
rm -rf /usr/local/cpanel/whostmgr/cgi/addon_softaculous.cgi
rm -rf /usr/local/cpanel/base/frontend/x3/dynamicui/dynamicui_softicons.conf;

Install Cloudflare Partner WHM Plugin

This is how to install the Cloudflare Partner WHM Plugin

bash <(curl -s https://raw.githubusercontent.com/cloudflare/CloudFlare-CPanel/master/cloudflare.install.sh) -k 11668d6f29af403e528980836f8c6213 -n 'CompanyName'

This is how to restore original visitor IP in EasyApache + cPanel

bash <(curl -s https://raw.githubusercontent.com/cloudflare/mod_cloudflare/master/EasyApache/installer.sh)