User quotas - php created files don't add to user.

4 posts / 0 new
Last post
#1 Thu, 02/28/2008 - 22:33
seba22

User quotas - php created files don't add to user.

Hi,

I have question.

Why files created by php ( user script) has not added to user quota.

I created an upload script and add quota to 1 GB.

After feew days i have look to panel and user quota = 20 mb ;)

I check ftp - 800 mb :/

If i put file by FTP it's counting properly :)

But files created by php, isnt counting.

Please help.

Fri, 02/29/2008 - 01:17
Lucian

I think that's normal if those files were uploaded via apache/php. In this case (assuming you run php through mod_php) those files belong to the apache user.. The solution: try to run php through mod_fcgid+suexec so that files created via php will be owned by you and not the http daemon..<br><br>Post edited by: Lucian, at: 2008/02/29 01:20

Fri, 02/29/2008 - 01:20 (Reply to #2)
seba22

I need to do it manualy, or is avaiable mod for Virtualmin ?

Fri, 02/29/2008 - 01:21
Lucian

If you're running Virtualmin Pro then i think this is an option somewhere.. if you're running the GPL version it's gonna take a bit of work to do it manually.

Topic locked