diabolicfreak Posted February 10, 2014 Posted February 10, 2014 For some unknown reason Disk Space Usage for my account has been slowly increasing and it looks like disk space usage is gonna cross the 500 mb limit. This has happened to my account once before and my account got suspended, after i got unsuspended(after posting in this forum), the disk space usage came down to around 200 mb, and now its once again slowly increasing(currently 478.86 / 500 MB), but the truth is i have less than around 200mb of data in my account. Could someone please help me with this issue, any help is appreciated.Thanks in advance cPanel username - diabolicmain domain - freehostarena.comThe server that i am on - stevie
lancersupraskyline Posted February 10, 2014 Posted February 10, 2014 CPanel has an interface that shows the files/folders which take up the most space.You can find it in Files > Disk Space Usage, and try to look for the culprit. Since you are confident that your data does not exceed the limit,I'd recommend you to review your coding thoroughly, especially on uploads and data entry. Lastly, I'd suggest you to change your passwords, for FTP and CPanel.Someone may have gained access without your knowledge, and misused the space.
Byron Posted February 10, 2014 Posted February 10, 2014 Look for core files where you have php files executed and delete all of them. Specifically this folder here: megaanswers.com Here's a php script that will remove all core dump files from your account. Just save it to your site and rename it with a php extension and then run it: http://bybyron.net/helio/cordump_sweeper.txt
diabolicfreak Posted February 18, 2014 Author Posted February 18, 2014 Look for core files where you have php files executed and delete all of them. Specifically this folder here: megaanswers.com Here's a php script that will remove all core dump files from your account. Just save it to your site and rename it with a php extension and then run it: http://bybyron.net/helio/cordump_sweeper.txt Thanks for the reply....but i have no idea what "core files" are. megaanswers.com is a wordpress website. There are a lot of php files in there, which ones should be deleted, and could u please explain how exactly the Disk Space Usage increases without my intervention. Btw running the php script, are u sure that it will not delete any of my website files that is important for its working?? Thanks in advance
Byron Posted February 18, 2014 Posted February 18, 2014 . Btw running the php script, are u sure that it will not delete any of my website files that is important for its working?? Thanks in advance Yes I am sure. It will only delete core files and that's it. If your still worried, you can comment this line out here and it will show the files that will be deleted: unlink("$path"); like this: # unlink("$path"); Don't forget to go back and uncomment that line and then run the script again. 1
diabolicfreak Posted February 19, 2014 Author Posted February 19, 2014 @Byron Thanks the script worked Could u please answers some of questions 1) What are dump files?2) Will dump files be generated again, and so would i have to run that script again?
Byron Posted February 19, 2014 Posted February 19, 2014 You can get a core dump when your php script crashes or has errors: http://en.wikipedia.org/wiki/Core_dump We've been working to stop core dump files but it seems it's not that easy some times. Lately I haven't noticed any on my site but I also run that same script weekly with a cron so maybe I missed them? Check your site periodically for a few weeks and see if you still get them. 1
diabolicfreak Posted March 1, 2014 Author Posted March 1, 2014 . Btw running the php script, are u sure that it will not delete any of my website files that is important for its working?? Thanks in advance Yes I am sure. It will only delete core files and that's it. If your still worried, you can comment this line out here and it will show the files that will be deleted: unlink("$path"); like this: # unlink("$path"); Don't forget to go back and uncomment that line and then run the script again. I got suspended again and moderator Tjoene told me its because of some malware, could that be the reason??... And the core dump script which you gave, is not running anymore, its giving an internal server error every time i run it http://megaanswers.com/cordump_sweeper.php>> plz help
jje Posted March 1, 2014 Posted March 1, 2014 its because of some malware, could that be the reason??Definitely not. All the core dump script does is match and delete files; no way could it inject malware or open a backdoor for malware. its giving an internal server errorWhen I go to the link provided I see a blank page, not an Internal Server Error. I took a quick look at the script, and it looks like it's simply not finding any files - there are no core files to actually delete, so it's not outputting anything. Your account's clean. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now