These are some tips that I picked up over the years working with cPanel & WHM.
Set Unlimited email quota in cPanel
In cPanel email quota is saved for each domain name in a quota file located inside /home/username/etc/domain.com/
![(Useless) cPanel Tips & Tricks image 19 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2022/05/image-19.png?resize=736%2C402&ssl=1)
So to set an unlimited quota for an email account simply remove the numbers from this file:
![(Useless) cPanel Tips & Tricks image 18 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2022/05/image-18.png?resize=736%2C149&ssl=1)
Create Unlimited email accounts in cPanel
cPanel stores the total number of email accounts that a cpanel account has in file .cpanel/email_accounts_count cpanel and if for example you have reached the package limit of 20/20 email accounts then simply change the number in the file to smaller and you will be able to create new email acocunts:
nano .cpanel/email_accounts_count cpanel
![(Useless) cPanel Tips & Tricks 2023 12 20 11 06 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2023/12/2023-12-20_11-06.png?resize=641%2C203&ssl=1)
Then create new email accounts:
![(Useless) cPanel Tips & Tricks 2023 12 20 11 07 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2023/12/2023-12-20_11-07.png?resize=655%2C467&ssl=1)
Create Unlimited MySQL or PostgreSQL databases in cPanel
cPanel stores the number of total databases that user has in files:
- .cpanel/datastore/mysql-db-count
- .cpanel/datastore/postgres-db-count
By simply setting lower number in these files, you can create new MySQL and PostgreSQL databases allowing you to bypass the package limits.
![(Useless) cPanel Tips & Tricks 2023 12 20 11 27 1 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2023/12/2023-12-20_11-27_1.png?resize=675%2C115&ssl=1)
![(Useless) cPanel Tips & Tricks 2023 12 20 11 27 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2023/12/2023-12-20_11-27.png?resize=675%2C113&ssl=1)
Get SSH port of the server
cPanel stores the SSH port in file .cpanel/datastore/ports_GETSSHPORT and by simply opening the file you can view the SSH port:
cat .cpanel/datastore/ports_GETSSHPORT
![(Useless) cPanel Tips & Tricks 2023 12 20 11 21 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2023/12/2023-12-20_11-21.png?resize=705%2C268&ssl=1)
List all domains that have Dedicated IP addresses on the server
Inside file .cpanel/caches/config/_etc_domainips___default_colon_with_one_space cpanel stores a list of dedicated IP addresses and main domains that use them:
cat .cpanel/caches/config/_etc_domainips___default_colon_with_one_space cpanel
![(Useless) cPanel Tips & Tricks 2023 12 20 11 33 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2023/12/2023-12-20_11-33.png?resize=669%2C124&ssl=1)
List all IP addresses on the server
cPanel stores all server IP addresses in a file .cpanel/datastore/all_iplist.db and by simply opening the file you can view the SSH port:
cat .cpanel/datastore/all_iplist.db
![(Useless) cPanel Tips & Tricks 2023 12 20 11 23 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2023/12/2023-12-20_11-23.png?resize=539%2C176&ssl=1)
phpinfo.php file for default PHP version
Often when checking limits or extensions we find ourselves creating a phpinfo.php file inside the website directory. But did you know that there is also a pre-made phpinfo.php file visible to cpanel users? By navigating to phpinfo.php
NOTE: this file will output information only for the default PHP version set in WHM.
![(Useless) cPanel Tips & Tricks image 40 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2022/03/image-40.png?resize=736%2C403&ssl=1)
env.cgi file
Another interesting file that is only accessible to logged-in cpanel users is the env.cgi file that displays all environmental variables such as IP, username, password, cp_session, etc.
![(Useless) cPanel Tips & Tricks image 41 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2022/03/image-41.png?resize=692%2C864&ssl=1)
For more information read: cPanel information disclosure via env.cgi file
Bulk export all cPanel SSL certificates
All SSL certificates are cached in JSON format in file: .cpanel/datastore/ssl_FETCHINSTALLEDHOSTS and to downlaod all certificates at once, simple download the file and then with a simple script extract them to separate files:
cat .cpanel/datastore/ssl_FETCHINSTALLEDHOSTS
![(Useless) cPanel Tips & Tricks 2023 12 20 11 52 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2023/12/2023-12-20_11-52.png?resize=736%2C607&ssl=1)
Password strength checker
Another script that is used by cpanel to check password strength is passwordstrength.cgi – by calling this script and adding password= parameter in the URL, a logged in user can check his password strength.
![(Useless) cPanel Tips & Tricks image 42 - (Useless) cPanel Tips & Tricks](https://i0.wp.com/pcx3.com/wp-content/uploads/2022/03/image-42.png?resize=736%2C131&ssl=1)
Add your password at the end and the script will simply output the strength in the range from 0 to 100.