HostOnNet Blog


Category Archives: Cpanel Server

ModSecurity Web Application Firewall

ModSecurity is a web application firewall that protect sites from application level attacks and exploits. To enable ModSecurity in Cpanel Server, go to Home > Security Center > ModSecurity™ Vendors Click “Add Vendor”. On Next Page enter url https://waf.comodo.com/doc/meta_comodo_apache.yaml [/code


Installing Softaculous

Before you can install Softaculous, you need to enable ioncube loader for PHP. This can be done in WHM (root) > Server Configuration > Tweak Settings > PHP. Select ioncube check box for cPanel PHP loader and click save button.


Managing CageFS with cagefsctl

To enable CageFS for a user, run


Get access to Cpanel/WHM using whmapi1

whmapi1 is a command line tool in cpanel server, that can be used for many WHM API call. To get WHM access to an account using root SSH, run Getting Cpanel Access from root SSH Replace USERNAME with your user


Enable monitoring of service on Cpanel Server

To enable monitoring of all services on Cpanel Server, run Example root@server20 [~]# whmapi1 enable_monitor_all_enabled_services — data: services: – monitored: 1 service: mysql metadata: command: enable_monitor_all_enabled_services reason: OK result: 1 version: 1 root@server20 [~]# See also tailwatch, cpanel server


TailWatch – Monitor Services in Cpanel Server

TailWatch is a service that monitors log files for errors in Cpanel Servers. TailWatch also monitors following cpanel modules chkservd cpbandwd eximstats jailmanager modseclog recentauthedmailiptracker chkservd chkservd determines whether a process is online and whether to restart it. Config files


Cpanel webmail down, cpanel_php_fpm keep failing

On a cpanel server webmail is down and keep getting email from cpanel server saying cpanel_php_fpm failed. On checking cpanel php-fpm log, have following error Problem is fixed by editing file Add Now restart php-fpm service


Building Packages For EasyApache 4!

EasyApache 4 on cpanel servers provide rpm based packages for Apache web server and PHP. EasyApache 3 used to build Apache and PHP from source. This is a time consuming process. Easy update/build process take anywhere between 20 to 30


Fix SSH in Cpanel Server with WHM root Access

If you have root WHM access on your Cpanel server and SSH is not working for any reason even after you reset via WHM, you can load SSD with default config. To do this, login to WHM as user root


open3: exec of ipset flush failed at csf

On CentOS 7 (CloudLinux 7) Server starting csf firewall got following error I checked if command /usr/sbin/ipset exists, but was not found. So checked which package provide this command. Problem is fixed by installing package ipset with yum