Chown Issue - Wordpress & cPanel User
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
-
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"
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.0 -
Thank Michael, I am also facing this same problem for one of my - Removed -. hope this will help me. 0
Please sign in to leave a comment.
Comments
2 comments