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
Category Archives: Server Administration
Recalculate disk space for a single domain in Plesk
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 [...]
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 [...]
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 [...]