How to remove tons of outdated auto-generated EasyApache profiles from WHM?
Hi, how can we remove the sht ton of outdated auto-generated EasyApache profiles? There are like 100 profiles, one per day it seems, and they're all dated from last year's fall and winter... and most importantly, they all seem to include PHP 7.4 which is not even maintained anymore.
WHM 110.0.9
See attached for what I mean.
-
Custom profiles are stored in: /etc/cpanel/ea4/profiles/custom/
0 -
Do I simply: sudo rm -rf /etc/cpanel/ea4/profiles/custom/* ? 0 -
Yes, but I would check to make sure you do not have any custom profiles you wanted to keep beforehand. 0 -
I don't. The only profile I want to keep is the current one (the "Currently Installed Packages" one that the very top). Will I lose the current one if I rm everything in that dir? 0 -
I'm not aware of a situation where there would be auto-generated profiles. Everything in the "custom" directory can be removed safely as that is not where the current profile is stored. 0 -
It's kind of crazy, it auto-generated one profile per day for months... I don't want any of them in my WHM interface as they're very outdated and it takes a while to load when I hit EasyApache in WHM because it needs to read all of those. So, cPRex, do you confirm that I should do: sudo rm -rf /etc/cpanel/ea4/profiles/custom/*.json If so, then what's this? (see attached) 0 -
Yes, that command will work. Just move that one up a directory and put it back when you're done and that will keep it in place. It might be worth a ticket to see *why* these are autogenerating though, as we certainly don't intend for that behavior to happen. 0 -
They are not auto-generated anymore. I must not have been clear in the top post but those are all from last year. Your suggestion (both of you) worked. It's back to normal with only suggested profiles that make sense in EasyApache. Thanks, we can close this. 0 -
Ah, that's cool then. I feel like I remember there being an issue where profiles were automatically generated, but I must be going crazy since neither myself nor any teammates could find such a case in our system. 0
Please sign in to leave a comment.
Comments
9 comments