How to remove tons of outdated auto-generated EasyApache profiles from WHM?

Benjamin D.

Well-Known Member
Jan 28, 2016
260
39
78
Canada
cPanel Access Level
Root Administrator
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.
 

Attachments

Last edited:

SimpleSonic

Well-Known Member
Mar 24, 2023
186
82
103
USA
cPanel Access Level
Root Administrator
Twitter
Yes, but I would check to make sure you do not have any custom profiles you wanted to keep beforehand.
 

Benjamin D.

Well-Known Member
Jan 28, 2016
260
39
78
Canada
cPanel Access Level
Root Administrator
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?
 

Benjamin D.

Well-Known Member
Jan 28, 2016
260
39
78
Canada
cPanel Access Level
Root Administrator
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)
 

Attachments

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
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.
 
  • Like
Reactions: Benjamin D.

Benjamin D.

Well-Known Member
Jan 28, 2016
260
39
78
Canada
cPanel Access Level
Root Administrator
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.