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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

nobody gets ownership of all my PHP-uploaded files

Discussion in 'General Discussion' started by HappyCoder, Aug 14, 2012.

  1. HappyCoder

    HappyCoder Member

    Apr 27, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hi all,

    I need your help.
    The user "nobody" gets ownership of all files uploaded via the website (PHP-script). I need to download and delete the uploaded files via FTP. But I also need to open/ view the uploaded files on the website.

    When I try to change ownership with chown, Indicator PHP script error: Operation not permitted

    What do I do wrong and how do I proceed?

    Oh happy day - and HappyCoder
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Have you considered using suPHP so the files are owned by the account username when they are uploaded via the PHP script? You can find more information on suPHP at:

    Apache PHP Request Handling

    As for changing the ownership of existing files, please ensure you attempt to complete this via SSH, FTP, or cPanel File Manager.

    Thank you.

Share This Page