1

We use Plesk 11.5.30 on CentOS and want to limit the disk space that domains can use. We have quotas enabled for the file-system as per KB #768 and set a hard disk quota for the domains in Plesk (eg 10GB).

However, the quota functionality only limits the system user account (the domain owner). But what about files created as the apache web-server user? For example, Perl scripts can create files owned by apache and these would not count towards the user's allocated quota.

Take the following example:

file1.zip   bob:psacln      5GB
file2.zip   bob:psacln      5GB
file3.zip   apache:apache   10GB

If user bob had a 10GB quota, he could create the three files above and consume 20GB as the third file is not included in the quota calculation.

So how can we restrict disk usage regardless of whether the files are owned by the domain user account or Apache?

1 Answer 1

0

You can set Disk Space limit which calculates all files disregarding their ownership. So apache files will be included. The limit is checked daily and once it is over - a domain will be suspended.

In Server settings you can actually pick what shall be covered by Disk Space limit - i.e. would you want domain backup be included in the limit or go over it.

Hard disk quota works differently - it is maintained runtime by linux kernel (filesystem driver actually), so it will cancel writing file once exceeded. But it is limited to particular sys.user

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.