CyberPanel Community

Error: The uploaded file could not be moved to wp-content/uploads/xxxx

an
anhtuan #1

Hello! i’m using cyberpanel and my wordpress site now show that error when i try upload any image:
The uploaded file could not be moved to wp-content/uploads/
I has tried to set chmod to 755 777,… and try some way from internet but not working for me.
Here greenshot: Imgur: The magic of the Internet
Can anyone have sulotion for that?

6 replies
Ma
Mac #3

Hi I have the same problem I thought it was just me but look for that route and change the permissions to 775 update and verify that those permissions are kept and do not change to 000

an
anhtuan #4

Type your comment> @Mac said:

Hi I have the same problem I thought it was just me but look for that route and change the permissions to 775 update and verify that those permissions are kept and do not change to 000

you are fixed that problem?

Ma
Mac #6

Hello, that problem in theory is due to account permissions and if I get it in both word press and drupal, but only in some other places you don’t have that, in cpanel they fixed it with a command to fix permissions to the account, but here I don’t know how to do it.

go
goodmuyis #7

I had a similar issue when I mistaken set a low disk space for a package that I assign to a website and I also Enforce Disk Limits. So the following day the owner could not upload photos on the worpress site.

What we ended up doing, at last, was to change the website directory attribute removing the immutable.

If you have access to SSH just run
sudo chattr -i -R /home/website.com

-i => with remove the immutable attribute
-R => will make the command to run recursively throughout the directory

If the above did not work try the command below, which should fix the file permission

cd /home/website.com
sudo chmod -R 644 public_html && sudo find public_html -type d -print0 |xargs -0 sudo chmod 755

Sign in to reply