• so I installed WordPress on my Ubuntu VPS. I already have a copy running for a different site and am trying to install a second one.

    I am trying to upload a theme (got the same error for pictures or anything else). when I try and upload i get the following error: The uploaded file could not be moved to /var/www/*****/wp-content/uploads. where **** is the name of the directory.

    I have done a bit of googling and I know it is a permissions issues. Just can’t put my finger on the issue. I have tried changing permissions in root for wp-content. Yet I can’t get it to work. Any suggestions would be great

Viewing 7 replies - 1 through 7 (of 7 total)
  • In terminal of your Ubuntu VPS, do.

    chmod -R 777 /var/www/*****/wp-content/uploads

    Then try again. If it works, make sure to limit the permissions back to what you want it to be. If it doesn’t work, come back and we will have to work out why.

    Also, I would NEVER advice to do it as root but to only do it as the same user that Apache (or whatever your webserver) runs as.

    Thread Starter climbguy

    (@climbguy)

    Snat,

    so who should i be logged in as in SSH when i run chmod -R 777 /var/www/*****/wp-content/uploads?

    thanks!

    Ideally, the same user that is setup for what the web server runs as. However if you can’t log into that user, do it as root but make sure to change the permissions back afterwards.

    Have got the same issue and not working for me unfortunately..help plz

    dangerdes

    (@dangerdes)

    I had the same issue, receiving the following message: The uploaded file could not be moved to /var/www/vhosts/mydomain.com/httpdocs/blog/wp-content/uploads, every time I tried to upload an image using either the browser uploader or the flash uploader.

    I’m a mac user and nearly code illiterate but learned that I could Control+Click on any of the files in my directory in Transmit, select ‘Get Info’ and change the Octal permissions.

    I specifically had to set my WP-content folder permissions to 755 and my Uploads folder permissions (which is inside the WP-content folder) permissions to 777. That’s what did it for me. After nearly 48 hourse of obsessive tinkering. I hope this helps someone. Apologies if I sound like on who doesn’t know. This is all new territory for me.

    esmi

    (@esmi)

    Standard recommendation:
    Change the permissions on the wp-content directory to 766. If you still have problems, try 767 or 777. Once your uploads are working, change the permissions on wp-content back to 755 again and check that everything still works OK.
    https://codex.www.ads-software.com/Changing_File_Permissions

    ngaub

    (@ngaub)

    I have the same issue, the site is set up on a server with plesk. all of the site works but I cant upload pics. I have tried all of the above still the same message. what is next??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘The uploaded file could not be moved to /var/www/****/wp-content/uploads.’ is closed to new replies.