For cPanel & WHM 11.46
If you do not want specific files to update, we recommend that you do not set cPanel-distributed files to immutable. This action will cause a variety of problems. Instead, enter the paths for those files in the
Each entry in the
/etc/cpanelsync.exclude file must use an absolute path, with each path on its own line.
For example, you may wish to prevent an update to the following files:
You would then use the following commands to add the files' path to the
This method only prevents an update from the
cpanelsync utility. This method does not prevent updates that occur at application runtime. You cannot use the
cpanelsync.exclude file to prevent modifications to configuration files, datastores, or similar types of files.
- You cannot block updates to RPM-managed files within the
- If you wish to edit a cPanel-provided RPM, review our document on how to customize and override the rpm.versions system.
To determine whether an RPM manages a particular file, run the following command: