View Full Version : Traffic - Space / Quota
alexillsley
11th February 2007, 23:53
Hi,
If the root user copies files to a users web directory from a php script based in the ispconfig control panel will it count towards the users traffic?
Also if the root user copies a folder/file and it is bigger than the user quota will it still copy?
Thanks,
Alex
till
12th February 2007, 10:49
If the root user copies files to a users web directory from a php script based in the ispconfig control panel will it count towards the users traffic?
Traffic is the amount of files you request by e.g,. mail or http and not the amount that you copy on your server. Maybe you mix this up with quota, which is the amount of space used by your files on the harddisk.
Also if the root user copies a folder/file and it is bigger than the user quota will it still copy?
Yes, because the files are owned by root and not by the user and group which own the website. To get correct quota values, even for files that belong to root, you will have to configure the command du command to be run by sudo and enable this behaviour in the config.inc.php file.
alexillsley
12th February 2007, 11:50
if i copied the files to the users site then chowned() them, would they still work if there over the quota
Also would it be possible to add the size of copied file onto the users traffic
falko
13th February 2007, 18:19
if i copied the files to the users site then chowned() them, would they still work if there over the quotaWhat do you understand under "work"? The files would be added to the user's hard disk usage, so he would be even more over quota.
Also would it be possible to add the size of copied file onto the users trafficNo. If you copy files on the system, then there's no traffic. There's only traffic if you copy files over the network.
alexillsley
16th February 2007, 13:00
I guess i will have to make it so that it puts the files up through FTP instead,
I guess thats why the file manager in ISP Config uses FTP
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.