cPanel includes a few default EasyApache 4 profiles that allow you to easily provision one listed under Available Profiles in WHM. Alternatively, you can customize your own configuration and save a custom profile to include in WHM’s list of Available Profiles. If you no longer wish to keep your custom profile, you can delete the profile’s “.json” file located in the /etc/cpanel/ea4/profiles/custom directory. In this guide, we will provide the steps for how to remove a custom EasyApache 4 profile.
Remove a Profile
- Log into your server via SSH as root.
user@localshell ~ $ ssh [email protected]
Enter passphrase for key '/home/user/.ssh/id_rsa':
[email protected]'s password:
root@server [~]#
- Use the cd command to change into the custom profiles directory: /etc/cpanel/ea4/profiles/custom. You can simply copy, paste, and run this command:
cd /etc/cpanel/ea4/profiles/custom
- Locate and remove the .json file that contains the name of the profile you created. For example, to remove the profiled we previously saved: suphp-event-all-php we ran the command:
rm -rf suphp-event-all-php.json
Now that you have removed your custom profile’s .json file, the WHM/EasyApache 4 interface will no longer display that profile in the Available Profiles list. If you remove a profile that matches the currently provisioned packages, the packages remain installed. You can simply add the profile back to the list by converting the Currently Installed Packages into a profile.