~4 min read • Updated Feb 14, 2026
1. Introduction
Before installing cPanel & WHM, you can customize several important configuration settings. These adjustments help ensure that the installation process is optimized, secure, and aligned with your server’s requirements.
2. Installation Methods
New installations of cPanel & WHM use the Fast Installation method by default. This method significantly reduces installation time by:
- Using
tarballsto download certain cPanel & WHM components. - Using system packages such as
RPMor.debto install thePerl local::liblibrary. - On Red Hat–based systems (e.g.,
AlmaLinux,Rocky Linux,CloudLinux) it usesRPMpackages. - On Debian‑based systems (e.g.,
Ubuntu) it uses.debpackages.
3. Installation Options
You can customize the installation process using the following command‑line options:
--confirm— Require confirmation before running the installer.--force— Force installation on unsupported configurations.--keep— Do not delete the target directory after installation.--nochown— Do not change ownership of extracted files.--noexec— Do not execute the installation script.--nox11— Prevent launching an X terminal.--skip-cloudlinux— Skip automatic conversion toCloudLinuxeven if a license exists.--skip-wptoolkit— Skip automatic installation ofWP Toolkit.--skip-imunifyav— Skip automatic installation ofImunifyAV.--target NewDirectory— Extract installation files into a custom directory.--tar arg1— Access archive contents using thetarcommand.
4. Basic Server Setup
The /etc/wwwacct.conf file contains the basic configuration for cPanel & WHM. After installation, you can manage these settings in WHM’s Basic WebHost Manager Setup interface.
How to Create the wwwacct.conf File
- Create the
/etc/wwwacct.conffile as therootuser. - Add each parameter on a separate line in the format
KEY VALUE.
Example structure:
ADDR 192.0.2.0
NS2 ns2.domain.tld
CONTACTPAGER [email protected]
LOGSTYLE combined
CONTACTEMAIL [email protected]
HOMEMATCH home
TTL 14400
NSTTL 86400
NS ns1.domain.tld
ETHDEV eth0
ADDR6
HOST
NS4
DEFMOD jupiter
HOMEDIR /home
NS3
SCRIPTALIAS yImportant: You must define the following values: ADDR or ADDR6, DEFMOD, HOMEDIR, LOGSTYLE, NS, NS2, and SCRIPTALIAS.
5. Configuration Values
You can configure the following parameters in wwwacct.conf:
ADDR— Shared IPv4 addressADDR6— Shared IPv6 addressCONTACTEMAIL— Administrator email addressCONTACTPAGER— SMS notification addressDEFMOD— Default cPanel themeETHDEV— Default network interfaceHOMEDIR— Default home directory pathHOMEMATCH— Pattern for home directory partitionsHOST— Server hostnameLOGSTYLE— Apache log format (combined)NS / NS2 / NS3 / NS4— Default nameserversTTL / NSTTL— Default DNS TTL valuesSCRIPTALIAS— Enable or disable/cgi-bin/alias
6. cpanel.config Settings
The installer reads the /root/cpanel_profile/cpanel.config file to apply predefined settings for Tweak Settings and other system configurations.
How to Configure
- Create
/root/cpanel_profile/cpanel.configasroot. - Add settings in
key=valueformat.
Example:
nobodyspam=1Configuring the MySQL/MariaDB Version
Use the mysql-version key to define the database version. The value must contain only one decimal point (e.g., 8.0).
Important: Unsupported versions will cause installation failure.
7. Automatic Account Restoration
The /etc/cpanelacctrestore file allows automatic restoration of accounts during installation.
Steps:
- Create the
/etc/cpanelacctrestorefile. - List each username on a separate line.
- Upload backup files to directories such as
/home,/home2,/root, or/usr.
8. Release Tier Configuration
The /etc/cpupdate.conf file determines which cPanel & WHM release tier your server uses.
Example:
CPANEL=stable9. The cpsources.conf File
The /etc/cpsources.conf file defines where your server retrieves update packages. Incorrect modifications may cause system issues.
If you see the following error, the file likely contains invalid data:
FATAL: Unable to retrieve tier version info: timeoutTo fix this issue, move the file and run:
/usr/local/cpanel/scripts/upcp10. Package Management on RHEL and Ubuntu
Using yum (RHEL‑based systems)
RHEL‑based systems use yum. Only vendor‑provided repositories should be used during installation.
Using apt (Ubuntu‑based systems)
Ubuntu systems use apt. Avoid third‑party sources to prevent system conflicts.
11. EasyApache 4 Configuration
You can preconfigure an EasyApache 4 profile by creating the /etc/cpanel_initial_install_ea4_profile.json file before installation.
Note: The file must be a valid JSON and a valid EasyApache 4 profile.
Conclusion
By customizing your cPanel & WHM installation in advance, you can build a secure, optimized, and fully tailored hosting environment. Proper configuration ensures smoother installation, better performance, and long‑term stability for your server infrastructure.
Written & researched by Dr. Shahin Siami