Introduction This document explains how to retrieve cPanel account statistics using the UAPI command-line interface. The StatsBar::get_stats API allows administrators to obtain usage information such as: In this example, we retrieve only the bandwidth usage and disk space usage for a cPanel account. Prerequisites Before running the command, ensure the following requirements are met: Verify ..
Category : WHM
Introduction: Disk quotas in cPanel allow administrators to control the amount of disk space allocated to individual hosting accounts. As websites grow, users may require additional storage for files, emails, databases, and backups. cPanel provides a command-line interface (CLI) that enables administrators to quickly modify disk quotas without accessing the WHM graphical interface. This article ..
Introduction The max_connections setting in MySQL defines the maximum number of simultaneous database connections allowed on the server. If this limit is too low, users may face “Too many connections” errors. By default, MySQL sets this value to 151 connections. Prerequisites Before making changes, ensure you have: a. Root access to the server (SSH or ..
Introduction The Email Suspend Login function in cPanel allows administrators to immediately prevent a user from logging into their email account. This is useful for situations where an account may be compromised, inactive, or requires temporary access restriction. Key points: Prerequisites Before using the suspend_login function, ensure the following: Steps / Usage 1. Prepare the ..
Introduction ModSecurity (also known as mod_security) is a Web Application Firewall (WAF) module for Apache, LiteSpeed, and NGINX. It helps protect web applications from common attacks such as SQL injection, XSS, brute force attempts, and malicious bots. In a cPanel/WHM environment, ModSecurity adds an extra layer of security to hosted websites. Prerequisites Before proceeding, ensure: ..
Introduction PHP-FPM (FastCGI Process Manager) is a modern and efficient PHP handler widely recommended for servers running cPanel/WHM. Compared to the legacy PHP-CGI, PHP-FPM offers better performance, improved memory usage, and enhanced security, making it ideal for high-traffic and resource-intensive websites. Prerequisites Implementation Step 1: Log in to WHMAccess WHM using your root credentialshttps://your-server-ip:2087 Step ..
Introduction cPHulk Brute Force Protection is a built-in security feature in WHM/cPanel designed to protect servers from brute-force login attempts on services like WHM, SSH, cPanel, FTP, and Email. Sometimes, however, you may get locked out of WHM or SSH because cPHulk has blacklisted your IP. Clearing or flushing the cPHulk cache helps reset the ..
Introduction: In web hosting environments managed through WHM/cPanel, administrators often need to suspend user accounts for various reasons such as non-payment, abuse, or maintenance. While this can be done easily through the WHM interface, system administrators often prefer using the Command Line Interface (CLI) for automation, scripting, or remote administration. Steps to Suspend a cPanel ..
Introduction Keeping your mailing list accurate and up-to-date is essential for effective communication. Whether you need to add new subscribers or remove outdated email addresses, managing your mailing list ensures your messages reach the right recipient. Prerequisites Implementation Step 1: Log in to WHM Step 2: Access Mailing Lists Step 3: Manage the Mailing List ..
Introduction Apache (also known as httpd) is one of the most widely used web servers globally. In a cPanel/WHM-managed server environment, ensuring that Apache is running smoothly is essential for website uptime and reliability. WHM’s Service Manager allows system administrators to monitor and manage critical services like Apache with ease. Prerequisites Implementation Step 1: Log ..
Recent Comments