ashleybmeyer
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: The uploaded file could not be moved to /var/www/vhosts/I had this same issue. When trying to upload files (for blog posts) from the wp-admin web view, I was getting the error “The uploaded file could not be moved to public/blog/wp-content/uploads”. My stuff is hosted on NFS (nearlyfreespeech.net) and I normally use Cyberduck to upload things and whatnot.
I’d already changed the permissions of /wp-content/uploads to 777 (read, write, and execute permission for owner, group, and others), but it still wasn’t letting me upload!
The trick that fixed it was changing the name of the /uploads folder to /broken-uploads, and then creating a new /uploads folder.
Since this isn’t possible in Cyberduck (dunno why), I opened Mac Terminal and used SSH to log into my wp-admin. If you’ve never used terminal or command line, these are the commands to accomplish this:
ssh username@hostname
(this logs you into your host)
cd blog
cd wp-content
(this brings you into your wp-content folder, mine is within a folder called blog)
ls -alh
(this shows you all the folders contents so you can confirm /uploads already has rwxrwxrwx)
mv uploads broken-uploads
(this renames /uploads to /broken-uploads)
mkdir uploads
(this creates the new /uploads folder)
ls -alh
(make sure you see /uploads in the list, as well as your old /broken-uploads)
chmod 777 uploads
(fixes the permissions to let your web wp-admin read write and execute)
ls -alh
(double-check that rwxrwxrwx is next to uploads)You should be good to go!