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

    Joined:
    Apr 27, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    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.
     
Loading...

Share This Page