Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Quota problem - Scripts uploading files as 'nobody'

Discussion in 'General Discussion' started by gvard, Oct 13, 2005.

  1. gvard

    gvard Well-Known Member

    Dec 22, 2003
    Likes Received:
    Trophy Points:
    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 :)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Xenon101

    Xenon101 Well-Known Member

    Mar 13, 2005
    Likes Received:
    Trophy Points:
    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!)

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice