How to Remove a Custom EasyApache 4 Profile

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

  1. 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 [~]#
  2. 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
  3. 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.

IC
InMotion Hosting Contributor Content Writer II

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

2 thoughts on “How to Remove a Custom EasyApache 4 Profile

  1. Hi,

    It doesn’t work in v100.0.7. I have created a profile which was called Old Server. How can i remove this profile.

    Thanks in advance

    1. Can you clarify what you mean by “it doesn’t work?” Did you not find the file? Did you delete the file but it still shows in WHM? Maybe check “/profiles/cpanel/.”

Was this article helpful? Join the conversation!

Questions about our MailChannels Deployment? We have answers and are here to help!Learn More
+