Disable 2 Factor Authentication in Cpanel

To disable 2 Factor Autentication for WHM in Cpanel Server, SSH into server as user root, run whmapi1 twofactorauth disable_policy Or run whmapi1 create_user_session user=root service=whostmgrd locale=en This will create a link for WHM login, using this link won’t require 2 Factor Authentication. After logging into WHM, you can disable 2 Factor Autentication. If you … Read more

Analytics

Matomo is an alternative to Google Analytics. https://matomo.org http://www.openwebanalytics.com https://plausible.io/ – Open source github

Enable HTTP/2 in Cpanel Server

Cpanel enable http2

HTTP/2 only works with mod_worker or mod_event. if you use another mpm module you need to switch to worker or event. To install http2, login to WHM as user root. Go to Now under Apache Modules, search for “http2”. Use the selector on right side to install it. Click “Next” until it it reach provision … Read more

phpMyAdmin missing from WHM after upgrade

On WHM, phpMyAdmin was missing from left menu after Cpanel upgrade. Verify cpanel-phpmyadmin package insalled on the server. [root@server82 ~]# rpm -qa | grep phpmyadmin cpanel-phpmyadmin-4.8.3-6.cp1176.noarch [root@server82 ~]# Since phpmyadmin package was installed, clear WHM cache with commands /usr/local/cpanel/bin/refresh_plugins_cache /scripts/rebuild_whm_chrome After clearning browser cahce, phpMyAdmin started showing in WHM.

Imunify Anti Virus

Imunify is an anti-malware software for webservers. It has 3 versions. ImunifyAV, ImunifyAV+, and Imunify360. ImunifyAV only supports manual scanning. ImunifyAV+ supports Scheduled scanning and One-click malware cleanup. Imunify360 has more protection, it supports scheduled scanning, a built-in firewall, and web application firewall (WAF), that protect against application-level attacks, WordPress brute force attacks, kernel update … Read more

CloudLinux EasyApache 4 Profile Missing

On CloudLinux server, EasyApache profile was missing. WHM shows following error message Please run “yum install ea-profiles-cpanel” to install the default cPanel profiles. Re installing ea-profiles-cpanel did not help. The issue is resolved by running # cd ~; wget https://repo.cloudlinux.com/cloudlinux/sources/cloudlinux_ea3_to_ea4; sh cloudlinux_ea3_to_ea4 –convert See Cpanel

Enable CloudLinux PHP lsapi

CloudLinux lasapi php

CloudLinux provides high performance PHP module lsapi. It is a replacement for suphp available on cpanel servers. lsapi module is a based on LiteSpeed Technologies API for PHP. To enable lsapi in CloudLinux Cpanel Server, go to Provision profile Click “Provision” and wait until the software is updated. Now you need to set lsapi as … Read more

Cpanel Server Disk Partition

Many server providers setup server with smaller / partition like 20 GB. This is fine for normal Linux Servers, you will need more disk space on Cpanel Servers. Many use CloudLinux on Cpanel Servers, this will require you to have more free disk space on / partition. The partition i use for Cpanel Servers are … Read more

Install mod_remoteip in Cpanel Server

To install mod_remoteip in Cpanel Server, run yum install ea-apache24-mod_remoteip Edit file vi /etc/apache2/conf.modules.d/370_mod_remoteip.conf Add RemoteIPHeader X-Forwarded-For RemoteIPTrustedProxy 127.0.0.1 PROXY_SERVER_IP_HERE Restart Apache. systemctl restart apache2 At this stage, PHP applications will show the proper visitor IP addresses. Apache access logs will still show the proxy server IP. To fix this, edit the Apache configuration file. … Read more