EasyApache 4 ships with a handful of stock profiles — Default, WordPress, CloudLinux — and almost every fleet drifts away from them within a month. The drift is invisible until somebody runs a rebuild from one of the stock profiles and a vhost that depended on mod_proxy_fcgi or php-imap returns a 500 the next morning. The fix is to treat your current build as a profile, save it, and feed that file into every rebuild.
What’s happening
An EasyApache 4 profile is a JSON document under /etc/cpanel/ea4/profiles/custom/ that lists every package the build expects: the Apache MPM, every loaded module, every PHP version, every PHP extension, and every module-level option (mod_security flavour, mod_proxy variants, suexec). When you “Customize” in WHM and run a provision, the in-memory selection is the source of truth — it is not written to disk as a profile unless you save it. Reboot, upgrade, or fresh tech, and there is no record of what was installed.
How to verify
From the host:
ls -la /etc/cpanel/ea4/profiles/custom/
whmapi1 ea4_list_profiles
rpm -qa | grep ea-php
rpm -qa | grep ea-apache24-mod
Compare the RPM list to the package list inside any existing profile in the directory. If they diverge, the running server does not match any saved profile and a rebuild will undo something.
The fix
- In WHM > EasyApache 4, click Customize on the currently provisioned profile. Walk through every screen — Apache MPM, modules, PHP versions, PHP extensions, Ruby, additional packages — without changing anything.
- On the Review screen, click Save as Profile rather than Provision. Give it a name that includes the server role and the date:
web01-php82-fpm-2026-05. Add a one-sentence description noting why this build exists. - The profile lands in
/etc/cpanel/ea4/profiles/custom/. Copy it to your configuration repository so the next rebuild on a replacement host loads from version control, not from a forgotten WHM session. - For multi-server fleets, push the same JSON to every box via your configuration management tool and run
whmapi1 ea4_set_profile profile=/etc/cpanel/ea4/profiles/custom/web01-php82-fpm-2026-05.json provision=1. - Re-save the profile after any significant change — new PHP extension, MPM swap, ModSecurity vendor change. A profile that is older than the running config is worse than no profile.
For environments where this profile-driven rebuild needs to be enforced across a fleet, Stack Harbor manages EasyApache 4 profiles as part of cPanel server administration.