Quota problem - Scripts uploading files as 'nobody'

gvard

Well-Known Member
PartnerNOC
Dec 22, 2003
208
9
168
Athens/GREECE
cPanel Access Level
DataCenter Provider
Greetings from Greece,

I searched the forums but didn't find anything (the word 'nobody' is a common word and the search engine didn't include it in the search criteria, so I couldn't do a successful search).

Some PHP scripts (like galleries) allows the site's visitors to upload files. Those files are uploaded as user 'nobody' and don't count for the user's quota. For example, I've a user with quota 200MB (user1) and in "quota user1" I see that the user uses 100MB but when I go at /home/user1/www and enter "du -sh */" I see an "uploads" directory that has 450MB of files.

Does anyone know how to fix that "problem" and have everything that PHP scripts under user1 upload count at user1's total disk quota?


Thank you in advance :)
 

Xenon101

Well-Known Member
Mar 13, 2005
72
0
156
You could enable PHP Suexec? To do so go to ssh and type /scripts/easyapache. Proceed to option 6 (advanced configuration) there will be a box somewhere there for PHP Suexec, then when any php script runs it will run as the username instead of nobody, this should fix the users uploads (i would presume!)