How to set maximum directory size on apache server?

view full story

http://serverfault.com – I create FTP users with a php script. I would like to give my users unique FTP folders. However I would like to limit the folders sizes to 1024MB/folder. How can I limit a folder size? I use proftp with i-mscp. I create SQL rows for my FTP users. (HowTos)