cPanel

cPanel is an online Linux-based control panel that simplifies website and server management.

cPanel allows you to publish websites, manage domains, organize web files, create email accounts, and more.

www.cpanel.net

tmpwatch remove emails - Delete all emails older than 6 months with Cronjob in cPanel

Delete all emails older than 6 months with Cronjob in cPanel

Here is how to delete all emails older than 6 months from cPanel using a cronjob. First, we need to know the exact location where emails are stored. On cPanel, emails are stored in 3 folders: new – incoming emails are received in this foldercur –...

image 8 - Set default Timezone via htaccess in cPanel

Set default Timezone via htaccess in cPanel

Here in how to change the default Time Zone permanently in cPanel using the .htaccess file Step 1. First, check you current time yone settings using a simple .php script like this: save it as timezone.php on your server and open the file in your...

open ports php - PHP Script to check for open ports

PHP Script to check for open ports

Here is a simple PHP script that you can use to test if a port is open on the server or not. And if you want to check for open ports on another server, get it’s IP address and put it instead of the $_SERVER[‘SERVER_ADDR’]; like this: $host =...

before edits - How to Whitelist a domain name in CSF

How to Whitelist a domain name in CSF

If you use dynamic DNS privately and need to whitelist a hostname or domain name in cPanel/WHM, you can use the DYNDNS feature of ConfigServer Security and Firewall plugin. csf.dyndns is a file that is specifically used for allowing hostnames in CSF...

LF EMAIL ALERT ConfigServer Security Firewall 1 - How to disable all cPanel LFD alerts

How to disable all cPanel LFD alerts

If clients are complaining for dozens of LFD alerts from their VPS’s running cPanel here is how to completely disable those email alerts. Here are two ways to disable LFD alerts: From WHM > ConfigServer Security & FirewallFrom the Terminal (SSH)...

2019.03.07.exim  - Working with emails in cPanel/Exim from the terminal

Working with emails in cPanel/Exim from the terminal

Is there exim at all? yum list installed |grep -i exim ———————— WHO DID IT ———————— WHO deleted email account grep execute/Email/delete_pop /usr/local/cpanel/logs/access_log WHO suspended email account grep suspend_incoming...

what is cpanel - WHO deleted files in cPanel and where from

WHO deleted files in cPanel and where from

Check the following log files:

To check if the files were deleted using FTP

/var/log/messages

To check if the files were deleted using file manager

/usr/local/cpanel/logs/error_log

If the files were deleted using shell access

history

what is cpanel - Create bulk email accounts in cPanel

Create bulk email accounts in cPanel

Lately I’ve been dealing a lot with email accounts in cPanel: Bulk change cPanel mailbox quota for all email ✉️ accounts and Bulk delete ✉️ email forwarders in cPanel. Here is how to bulk create email accounts in cPanel under a single domain name...