Category Archives: Server Administration

Recalculate disk space for a single domain in Plesk

This is a pretty easy one, it’s useful if a client has gone over their allocated disk space. Occasionally even if they delete everything Plesk still thinks they are over until the nightly cron jobs are re-run.
This command just forces the job to re-run on  a single domain:
/usr/local/psa/admin/sbin/statistics –calculate-one –domain-name=Domain_name.com

Posted in Server Administration | Tagged , | 1 Comment

Whitelabel your Plesk web hosts nameservers

This post is all about how you can hide your hosting companies name servers. I run a web hosting company, and many of our clients are re-sellers, as you might expect, they don’t want people knowing who we are, so they want to hide our nameservers.
Incidentally, our nameservers are ns1.leadingedgehosting.co.uk & ns2.leadingedgehosting.co.uk
This post will show [...]

Also posted in Web Development | Tagged , | Leave a comment

Find the Full Path To A Virtual Host Directory

This is a quick one, but hopefully some people will find it useful!
This simple script normally returns the full Linux path to your files, e.g.
/var/www/vhosts/leadingedgescripts.co.uk/httpdocs/
Simply create a PHP file with the following contents:
<?php
echo getcwd();
?>
Copy it to your PHP enabled server (using FTP/SFTP etc) and visit it in your web browser.
This tidbit of information can be [...]

Also posted in Web Development | Tagged , | Leave a comment

Scary PHP Functions You Should Disable

A few months back we completed a security update on one of our main servers and whilst we were performing the update we realised that there is a distinct lack of information out there concerning the security of PHP functions, and no good lists of functions that should be banned or switched off.
When you install PHP, it [...]

Also posted in Computer Security, Web Development | Tagged , , | 1 Comment

Creating A New Subversion User on Windows

This post assumes that you’ve installed Subversion on a Windows server, if you haven’t I’m planning on writing a detailed post about how to install Subversion and get it all up and running so I’ll try and get that done asap. It also pretty much assumes that you are using the Wonderful (yes that’s a capital [...]

Also posted in Web Development | Tagged , , | Leave a comment