Category: Hosting

Find Cause of Spam Source

Mass suspend or unsuspend mailboxes of a domain Using the API, can help you quickly automate that process and suspend the users in question: If you wish to suspend the entire domain, you can use: To Unsuspend: If you prefer to suspend a specific email account login, you can use the suspend_login API call. To suspend

Read more

cPanel PHP-FPM php error log rotation

How to set up PHP error log rotation in cPanel When cPanel server uses PHP-FPM it does only control the log rotation for system-like log files, which are sitting at /opt/cpanel/ea-phpXY However it does not rotate PHP error log generated and stored at /home/<user>/logs/domain.com.php.error.log Modern CMSes may produce huge amount of Warning and Deprecated log entries in

Read more

WHM: Install SSL certificate for Hostname

Initially, to install the Let’s Encrypt provider, we run the following command: Once we install the Let’s Encrypt provider, we change the auto SSL provider to Let’s Encrypt from Comodo. To do so, we log in to WHMand go to Manage AutoSSL. Install Self-Signed Certificate to Hostname. 1) Here, we log in to WHM as

Read more

Detecting inbound attacks:

Server running slow – this is an obvious sign you might getting hacked. Especially if you haven’t changed anything else on the site and traffic is still the same. Check for high server (CPU) load grep processor /proc/cpuinfo | wc -l. Unnecessary if your webhosting control panel already has a GUI for this. Anything at or above

Read more

Identify the Bad Process

I have a process named “stealth” that has infected my server (slamming my CPU) To get a list of all current active connections, you can use the netstatcommand: With the -a parameter, we tell the command to show all connections(including the LISTENING ones), instead of only those who are connected. The -n parameter shows the different port numbers used Now, to find out

Read more

Test whether mod_security is actually working

If you get a 403, then ModSecurity is working as expected. Mod_Security is enabled automatically after you select it and build Apache via EasyApache. Assuming no third-party applications are installed to manage it, you can manage its rules at: “WHM >> Plugins >> Mod_Security” You will typically see a “406” error code in the Apache error

Read more