Items uploaded via PHP are not count in diskusage

My PHP scripts are running as Apache user, if not my programs won’t work.
The issue is that when a php script is used to upload a image or so it is stored on disk as user apache and group apache.
Due to this the images are not count in the disk usage.

Greetings,

The folder you are uploading to is probably owned by group apache. You want to switch the group ownership to the siteworx user’s group and also set the sticky bit:
chmod g+s [dir]

this ensures any new files created by apache will still be owned by the siteworx user’s group and thus be counted towards the quota.