How to "format" a Cpanel account?

Discussion in 'Site & Server Administration' started by spycraft, Aug 14, 2009.

  1. #1
    Hello all,

    First of all, I apologize in advance to the mods if this is not the best section for this topic. I honestly couldn't figure out a better section for it.

    Having said that, here is my situation:

    I currently have a reseller account with a hosting provider. I am using one of my domains as my main domain for the account - through which I can log into my WHM and create new accounts. I have already created many accounts which should NOT be affected in any way from this.

    At this point, I would like to completely reconstruct the site that I have on my main domain. I know that I can simply start deleting the files in my public_html folder and delete the mysql DBs from the account, however, I was wondering if there is a faster way.

    If that wasn't my main account, I would simply terminate it and create it all over again, but I am afraid to do that cause it is. Would terminating that account cause any problems to the rest of my accounts?

    I noticed that there is a folder in my main ftp for this domain, named after my username, and that folder includes folders such as "resellerconfig" or "dnszones". I don't know what those folders are, but I am assuming that they have something to do with the settings of my reseller account.

    So, what do you think is the best way to start? My site was basically hacked and they did a mysql injection on it, so I really want to wipe it clean and put a completely different and more secure script on it. I really don't want anything from that old site to remain on there. Is there any easy way to do that?

    Thanks in advance!
     
    spycraft, Aug 14, 2009 IP
  2. eth1

    eth1 Peon

    Messages:
    10
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Since this is the main domain associated with the account which is in question, you need to delete the files and folders from inside the location /home/user/public_html

    where user is the cPanel account username associated. This is the recommended way and rest of your accounts will be unaffected. You can then delete the MySQL databases from cPanel > MySQL.
     
    eth1, Aug 15, 2009 IP