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

~4 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

Related Articles

How to Restore Your cPanel Account: A Complete Guide for New System Administrators

This guide explains how new system administrators can restore a cPanel account using WHM, transfer accounts and configurations between servers, and enable diagnostic logging for transfer and restore operations. It covers essential concepts such as WHM vs. cPanel, root access, backup handling, SFTP uploads, transfer methods, and advanced debugging tools.

Continue

آموزش کامل انتقال تمام اکانت‌های cPanel از یک سرور به سرور دیگر

این مقاله نحوه انتقال همه اکانت‌های cPanel، تنظیمات سرویس‌ها، گواهی‌های SSL و IP اصلی سرور را از یک سرور قدیمی (Source) به یک سرور جدید (Target) توضیح می‌دهد. شامل نصب سرور جدید، انتقال تنظیمات، انتقال اکانت‌ها، تغییر IP، تنظیم DNS و نصب مجدد SSL است.

Continue

How to Migrate a WordPress® Installation to a cPanel & WHM Server

This guide explains how to migrate a WordPress installation from a macOS-hosted environment to a cPanel & WHM server. It covers exporting the database, uploading WordPress files, creating and importing a MySQL database, updating URLs, configuring wp-config.php, fixing broken links, and finalizing the migration.

Continue

How to Manually Transfer an Account Between Servers in cPanel & WHM

This article explains how to manually transfer a cPanel account between servers when the account is too large for WHM’s automated transfer tools. It covers creating temporary directories, compressing public_html and log files, securely transferring data with SCP, and restoring the files on the destination server.

Continue

How to Manually Migrate Horde Calendars and Contacts to Roundcube in cPanel & WHM

This article explains how to manually migrate Horde calendars and contacts to Roundcube in cPanel & WHM version 108 through 118. It covers exporting Horde data, placing it in the correct directories, and importing it into Roundcube using built‑in plugins or manual import tools.

Continue

How to Manually Migrate Accounts to cPanel & WHM from Unsupported Control Panels

This article explains how experienced system administrators can manually migrate accounts from unsupported third‑party control panels to cPanel & WHM. It covers pre‑migration steps, installation requirements, file and directory transfers, database restoration, SSL migration, and post‑migration tasks.

Continue