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.

Chown Issue - Wordpress & cPanel User

Discussion in 'Security' started by Timothy Ross, Sep 22, 2017.

  1. Timothy Ross

    Timothy Ross Registered

    Joined:
    Sep 22, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Switzerland
    cPanel Access Level:
    Root Administrator
    Hi there!

    We're currently setting up our brand new dedicated server. Everything works fine, including the compete Cpanel transfer from the old host.

    Besides of that, we're facing one major issue with permissions. The basic problem: We are running multiple WordPress websites: After the transfer, we experienced the issue, that we couldn't upload any files anymore. The error we received was "The uploaded file could not be moved to wp-content/uploads/2017/XX".

    After some research with Google, we figured out that it would help to change the owner of the files to "nobody", instead of the Cpanel user we used to log into FTP ("esportba" in our case). To do that, we used the command "chown -R nobody /home/esportba/alpha" (Alpha being the subdomain-folder, where our Wordpress installation is in). We also tried to specify the URL for the chown command to the /wp-content/uploads folder. This didn't help either.

    Now this fixed the issue for WordPress, but resulted in us not being able to move, upload and change the file permission of certain files with our Cpanel user "esportba" trough FTP.

    We are looking urgently for a way to combine both solutions, so both Wordpress and the FTP work just fine. Does anyone have an idea, how we can approach that issue?

    Thanks! Looking forward to your solutions.

    Cheers,
    Timothy
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The better approach would be to keep ownership set to the account username and consider using either suPHP or the DSO handler with Mod_Ruid2 enabled:

    PHP Handlers - EasyApache 4 - cPanel Documentation

    Thank you.
     
  3. Naval Gupta

    Naval Gupta Registered

    Joined:
    Sep 22, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    india
    cPanel Access Level:
    Website Owner
    Thank Michael, I am also facing this same problem for one of my - Removed -. hope this will help me.
     
Loading...

Share This Page