Skip to main content

'cleaning' a cPanel image

Comments

6 comments

  • cPanelMichael
    Hello :) You may want to consider simply making a new image with the existing custom changes you would prefer to preserve. This would ensure that previously saved configuration values that are no longer utilized do not exist. Thank you.
    0
  • RandomMcBob
    Hi Michael We have considered this, however it would be easier from our point of view to just remove old data if at all possible.
    0
  • ThinIce
    I think this may be one of those kettles of fish I keep hearing about :) From what I've seen in practice and from discussions in the past there is no / no intent to produce a list of items that should / could be sanitised when deploying installs in this manner. There are plenty of people out there doing it, and I think the docs should either feature a "don't do it because..." statement (the opinion I now sit with), or include a list of things that at the absolute minimum should be wiped / set fresh for each new deployment of the image (i.e. obvious ones like the mysql root password - obvious obviously being a relative concept...)
    0
  • RandomMcBob
    [quote="ThinIce, post: 1558271">I think this may be one of those kettles of fish I keep hearing about :) From what I've seen in practice and from discussions in the past there is no / no intent to produce a list of items that should / could be sanitised when deploying installs in this manner. There are plenty of people out there doing it, and I think the docs should either feature a "don't do it because..." statement (the opinion I now sit with), or include a list of things that at the absolute minimum should be wiped / set fresh for each new deployment of the image (i.e. obvious ones like the mysql root password - obvious obviously being a relative concept...)
    Yes, I'm afraid that I had assumed that this is the case. The cPanel filesystem is so spread out that I think an effort to catalog it would be an absolute nightmare. I've made use of a load of greps and I think I've managed to track down the majority of the references to old hostnames, so I think that's going to have to do.
    0
  • ThinIce
    I suppose the log location and config file location posters could be used as a base for the minimum to grep through - I'd also wonder about caches though...
    0
  • RandomMcBob
    I ran a recursive grep through the entire filesystem and established what directories I needed to look in - these are all cleaned, but as you rightly pointed out, caches still return positive results. Is it safe to remove them? i.e. will they be recreated upon boot?
    0

Please sign in to leave a comment.