Nov 13

How to monitor your disk usage on a web server.

Category: How-To

Now the other day something incredibly strange happened, I was checking my usage and had found out that I was gigabytes over my usage. I was in disbelief, I had to find out what had happened, but low and behold, there was no apparent way of figuring it out. I checked on my control panel, I tried about ten different ftp browsers, online ftp browsers, even went and tried to find Windows Explorer addons that might able to do it, but I could not find anything. Even the webhost’s help site had nothing, but then as  I was browsing through the forums on one of the FTP software’s site, I found a solution a PHP script that does it for you.

You can actually download the script from the SmartFTP website. Just download either the php or asp version, whichever you need, and if you want to run the php script as is on your webserver, just remove the s at the end of it and it will run no problem through your browser. I would also recommend renaming the file if you do this as people could determine your directory structure and this could jeopardise your server’s security. Best security measure would be to delete it if you don’t need it, or just upload it when you do need it, as it is tiny.

Another good way  is to set up a cron job on your web server, however I’ll post this up another day.

RSS feed | Trackback URI

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.