Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  yordan : (19 June 2013 - 02:28 PM) Long Life To Asta New Era
@  agyat : (19 June 2013 - 01:58 PM) New Era Start At Asta Or Asta Start In New Era. :unsure:
@  yordan : (16 June 2013 - 05:41 PM) You're Welcome, Agyat!
@  agyat : (16 June 2013 - 07:38 AM) Thanks Yordan...
@  velma : (16 June 2013 - 12:06 AM) I Have Asked Opa To Check For A Backup.. He'll Let Me Know Soon :)
@  velma : (16 June 2013 - 12:05 AM) T_T It Seems That Someone Has Deleted That Topic Since I Found The Url Of The Topic But It Gives Me An Error
@  yordan : (15 June 2013 - 10:31 PM) @velma : It's A Tuto On How To Create A Login Program.
@  yordan : (15 June 2013 - 10:31 PM) Happy Birthday To Youuuuuu Agyat!
@  yordan : (15 June 2013 - 10:31 PM) Ba$
@  agyat : (15 June 2013 - 04:41 PM) :(
@  agyat : (15 June 2013 - 04:41 PM) Where The Hall I Were? 15Th Is Almost At End And No-One Wished Me "happy Birthday"!!!
@  velma : (14 June 2013 - 10:39 AM) Which Tutorial Is He Searching For?
@  velma : (14 June 2013 - 10:38 AM) Which Tutorial Is He Searching For?
@  yordan : (14 June 2013 - 07:47 AM) Ok, Have A Look Tomorrow.
@  yordan : (13 June 2013 - 03:19 PM) @velma, Can You Have A Look At Feelay's Problem? Seems That His Tutorial Is Not Searchable Today.
@  Feelay : (13 June 2013 - 08:11 AM) Oh, Haha
@  velma : (12 June 2013 - 05:39 PM) T_T Lately My Levels Of Procrastination..... **sigh**
@  velma : (12 June 2013 - 05:38 PM) I'll Do It Later
@  velma : (12 June 2013 - 05:38 PM) Procrastinators.. People Who Keep Saying "i'll Do This In A Bit"
@  Feelay : (12 June 2013 - 02:05 PM) Deal Punishments To What?

Photo
- - - - -

Cpanel Clean Up !


7 replies to this topic

#1 dhanesh

dhanesh

    Binary Geek

  • Members
  • 444 posts
  • Gender:Male
  • Location:The Digital Arena
  • myCENTs:42.19

Posted 10 August 2006 - 08:17 AM

Ok .. herez what i want to do, I want to COMPLETELY flush out unwanted files and folders out of the account and start fresh. So either 2 things are possible, One .. m^e :o .. hi .. hehe .. an admin has to clean up or reset my account .. OR .. i need a list of files i can delete, which are :

public_html
tmp
mail
public_ftp

and any file or folder that begins with dot "."

(that was m^e's reply when i first joined ;))
But say in .htpasswds i have a folder thats without a dot and is empty .. can i del that ?
.contactemail, .spamkey etc .. what are these :D .. can i del them ?

Or a simple way is to request a reset :o ..

Regards
Dhanesh.

#2 vhortex

vhortex

    Guilty Until Proven Innocent

  • Members
  • 513 posts

Posted 10 August 2006 - 12:40 PM

i think those starting with a dot are support files.. i dunno.. i never had them in my setup of apache..
this are the folders that can be purged..

public_html <-- all pages are here
do not delete cgi-bin inside that folder..

public_ftp <-- the ftp server without that you share to public.. can be purge..

tmp <-- scratch.. temp folder..

mail <-- plain emails.. i dunno if you can just delete this one without deleting the corresponding email account.. on my fedora it was safe to delete all contents here since my fedora rebuilds the email accounts after wards..

fantastico_backups <-- i know you can remove this also.. need some verification first..

all folders starting with _ in the public_html must not be deleted if one of your program are using them.. i dunno what they are but when i have a frontpage support with my fedora.. those files appeared.. ask the admins if they can be deleted..

---

hope it helps...

#3 vujsa

vujsa

    Absolute Newbie

  • [MODERATOR]
  • 888 posts
  • Gender:Male
  • Location:Indianapolis, Indiana, USA (Midwest)
  • myCENTs:35.43

Posted 10 August 2006 - 02:50 PM

Here is what I can tell you.

You can delete anything that you want but your account may no longer work.

Nearly everything in /username/home/ should be kept. I wouldn't delete anything here since you didn't personally put anything there in most cases. Nothing gets installed there.

You can delete everything in /username/home/public_ftp/. Nothing is there by default and nothing is installed there either.

Now before you do anything else, uninstall any scripts that were installed using fantastico. Be sure to uninstall these scripts with the fantastico remove feature or you'll have to manually remove the entries from the install log before you can install another script with fantastico in that folder/subdomain/root. Really, you don't want to have to manually edit that file.

Once you have everything uninstalled CORRECTLY, then you can remove ALL subdomains. Don't just delete the folders. Use cPanel to remove the subdomains. If you just delete the folder, then the server wont know that you no longer have the subdomain.

Again in cPanel, remove any or ALL email accounts that you no longer need.

Remove as many advanced website settings you have selected like hotlink protection, forwarding, password protected folders, etc. (These will basically be gone when you delete any .htaccess files but removing them first will leave fewer chances of missing something.)

Delete your databases and database users. Even though fantastico removes scripts, it usually forgets to delete the database that it added. Databases use up a lot of space especially if it isn't needed.

Now you can safely delete everything inside of /username/home/public_html/! You can even delete cgi-bin/ if you want! :o to save yourself the time needed to select everything, you could just delete public_html/. I know everyone else will tell you not to. ;) It isn't that big of a deal, just replace it later. I'll explain in a second. You should probably save a copy of .ftpquota and error_log to your local system.

Well, there you go, everything is all gone. Back to square one.

Now if you did happen to take my advise and you did in fact delete public_html then I really sorry to tell you that I was just kidding! :o No, just create a new folder and name it public_html. Then open that up and create a folder and name it cgi-bin. The you can copy .ftpquota and error_log back to your public_html folder.

Okay, you're done with that. It will take between 24 and 48 hours but your disk usage should show around 25MB or less. I don't remember how much space an "empty" account uses.

Feel free to repopulate your account now. :D

Hope This Helps!

vujsa

#4 dhanesh

dhanesh

    Binary Geek

  • Members
  • 444 posts
  • Gender:Male
  • Location:The Digital Arena
  • myCENTs:42.19

Posted 10 August 2006 - 03:17 PM

Thankx Vhortex and Vujsa ..

Ok, well here is what i normally do if i want to clean up: Delete EVERYTHING inside public_html, now that includes the cgi-bin folder and the .htaccess file, i have noticed that it gets recreated again when i refresh.

Now after readin vujsa's post, i have a clear question in mind. Is my Disk space of 150mb counted on things inside public_html ? or inside /home/

I have nothing to loose, no added settings, no fantastico add-ons .. i just have 2 mail accounts, but no mails in them either, i made them for testing. So basically i am willing to loose it all. But not at the cost of making my account non-responsive. I was just paranoid about being a little organized :D ..

Regards
Dhanesh.

#5 vujsa

vujsa

    Absolute Newbie

  • [MODERATOR]
  • 888 posts
  • Gender:Male
  • Location:Indianapolis, Indiana, USA (Midwest)
  • myCENTs:35.43

Posted 10 August 2006 - 03:28 PM

Your 150MB is counted for everything inhome/ and in your database.

A "BLANK" account has overhead like server settings, account information, etc. The database also has overhead without having anything in it. So of your 150MB, maybe only 135MB is YOURS! :D

There is a file somewhere that holds very important information about your cPanel account. I can't remember which one so I wouldn't delete any of the files and folders in home/


These files are not the bulk of your overhead. They won't save you much room if you delete them so I wouldn't suggest doing so.

vujsa

#6 dhanesh

dhanesh

    Binary Geek

  • Members
  • 444 posts
  • Gender:Male
  • Location:The Digital Arena
  • myCENTs:42.19

Posted 10 August 2006 - 03:37 PM

lol .. f'get it .. u scared the sh*t outa me about the account, so its all fine. I'll stick to my current files and settings :D .. but thankx for all that extra info, i'll be careful not to delete any files without re-checking what it is for .. lol

Regards
Dhanesh.

#7 vhortex

vhortex

    Guilty Until Proven Innocent

  • Members
  • 513 posts

Posted 10 August 2006 - 03:40 PM

it was 143MB on my account when i erase all.. that is.. i have an email account setup with contents and a database around 1mb in size..

maybe the overhead was around 5mb.. not sure..

#8 dhanesh

dhanesh

    Binary Geek

  • Members
  • 444 posts
  • Gender:Male
  • Location:The Digital Arena
  • myCENTs:42.19

Posted 10 August 2006 - 06:12 PM

Disk usage 1.64 / 150.00 MB
Disk space available 148.36 MB

Thats after an entire cleanup, as in just deleting stuff in public_html :D .. guess its more .. but i think the overhead value would be approx 1MB ..

Regards
Dhanesh.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users