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

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 [...]

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 [...]

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, [...]