Complete Guide to the cPanel & WHM Configuration File: /var/cpanel/cpanel.config (Versions 110–130)

This article provides a complete and structured explanation of the /var/cpanel/cpanel.config file, the core configuration file that stores nearly all Tweak Settings options in cPanel & WHM. It explains how the file works, how dynamic values behave, how caching is handled, and includes a categorized list of the most important keys with their descriptions, default values, and related WHM interface locations.

cpanel.configWHM configuration,Tweak Settings file

~3 min read • Updated Feb 17, 2026

1. Introduction


The /var/cpanel/cpanel.config file is the central configuration file for WHM and cPanel. Every option you modify inside WHM’s Tweak Settings interface is ultimately stored in this file.


If the file is missing, cPanel automatically recreates it using the default template located at:

/usr/local/cpanel/etc/cpanel.config

Important Notes:

  • Dynamic values should not be edited manually. Always change them through WHM → Tweak Settings.
  • The cache file /var/cpanel/cpanel.config.cache is regenerated automatically whenever the main file changes.

2. Key Groups and Descriptions


General / System Settings


KeyTweak Settings SectionDescription / Default ValueNotes
enginecpanelDo not modify.
engineroot/usr/local/cpanelDo not modify.
engineplcpanel.plDo not modify.
root/usr/local/cpanelDo not modify.
conserve_memory0Dynamic — change only via WHM.
maxmem4096Max memory for cPanel processes (MB).
maxcpsrvdconnections200Maximum concurrent cpsrvd connections.

Security / Login & Authentication


KeyTweak Settings SectionDescription / Default ValueNotes
cgihidepassSecurity → Hide login password0Hides login password from CGI scripts.
cookieipvalidationSecurity → Cookie IP validationstrictModes: strict / loose / off.
domainowner_mail_passMail → Mail authentication0Dynamic — domain owner can authenticate mail.
resetpass1Allows cPanel password reset.
resetpass_sub1Allows sub-account password reset.
requiresslSecurity → Require SSL1Forces SSL for WHM/cPanel/Webmail.

Email / Mail Settings


KeyTweak Settings SectionDescription / Default ValueNotes
exim_retention_daysStats and Logs10Retention for Exim stats.
exim-retrytimeMail → Retry time15Retry interval in minutes.
eximmailtrapMail → Track email origin1Enables X-Source header.
mailbox_storage_formatMail → Mailbox formatmaildirmaildir or mbox.
popbeforesmtpMail → POP-before-SMTP0Allows relay after POP login.
smtpmailgidonlyMail → Restrict outgoing SMTP1Only root, exim, mailman can send SMTP.

DNS / Domains


KeyTweak Settings SectionDescription / Default ValueNotes
autocreateaentriesDomains → Auto A entries1Adds A records for nameservers.
autodiscover_hostDomains → SRV hostcpanelemaildiscovery.cpanel.netUsed for autodiscover.
proxysubdomainsDomains → Service subdomains1Dynamic — enables cpanel., webmail., whm.
proxysubdomainsoverrideDomains → Override1Allows overriding A records.

PHP & Apache


KeyTweak Settings SectionDescription / Default ValueNotes
php_max_execution_timePHP → Max execution time90Seconds.
php_memory_limitPHP → Memory limit128MB.
php_post_max_sizePHP → Max POST size55MB.
php_upload_max_filesizePHP → Max upload size50MB.

Stats & Logs


KeyTweak Settings SectionDescription / Default ValueNotes
cycle_hoursStatistics Software24Rounded to nearest 15 minutes.
dumplogsStats and Logs1Deletes access logs after stats processing.
keepftplogsStats and Logs0Keeps master FTP log.
keeplogsStats and Logs0Keeps monthly logs.

Notifications & User Alerts


KeyTweak Settings SectionDescription / Default ValueNotes
emailusers_diskusage_critical_percentNotifications90Critical disk usage alert.
emailusers_diskusage_full_percentNotifications98Full disk alert.
emailusers_diskusage_warn_percentNotifications80Warning threshold.
emailusersbandwidthexceedNotifications1Bandwidth limit exceeded alert.

3. Important Notes


  • Do NOT manually edit dynamic keys. Always use WHM → Tweak Settings.
  • After manual edits, restart cpsrvd:
/scripts/restartsrv_cpsrvd

  • If the file is missing, cPanel regenerates it from the default template.

4. Viewing or Editing the File


cat /var/cpanel/cpanel.config
nano /var/cpanel/cpanel.config

Conclusion


The cpanel.config file is the core of WHM’s configuration system. Understanding its structure and key values allows administrators to manage cPanel behavior with precision and avoid misconfigurations. Always modify dynamic values through WHM and allow cPanel to manage caching automatically.


Written & researched by Dr. Shahin Siami