The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Work-around for incorrect disk usage report

Discussion in 'General Discussion' started by verdon, Feb 10, 2007.

  1. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    Hi,

    In my case, I'm not using phpsuexec. I know the pros and cons of using that and don't want to get into that conversation here. Essentially, there's only about 80 domains on the server and I am the sole developer for all of them, so I'm comfortable enough without phpsuexec for now.

    One downside though is not getting accurate disk usage stats for sites that have photo gallery type applications, where the uploaded images are owned by nobody and not the user.

    I've thought that as a work-around, I could put a file in cron.daily with the following

    #!/bin/sh
    chown -R user:nobody /home/user/public_html/images
    chmod -R g+w /home/user/public_html/images

    Is that a stupid idea, or OK? I'm just curious as to other opinions.
     
Loading...

Share This Page