I am not able to upload any images to the Media section. I get this error message:
"Unable to create directory wp-content/uploads/2015/05. Is its parent directory writable by the server?"
I tried changing the permissions, gave full access 777 to both uploads, and wp-content directory but this didn't help.
I tried changing the owners to apache : apache for /wordpress/wp-content, but that hasn't helped either.
upload_path is set to wp-content/uploads in option-media.php. Still it is not working.
Tried defining upload path define(UPLOADS, 'wp-content/uploads');
No Help.
(server: centos)
Someone, please help!!!
-Thanks in advance.
Go to
wp-admin/options.php
Under
upload_path
replace with exactlywp-content/uploads
(no quotes, no extra slashes)That worked for me after I had tried to all other solutions for days.
"The uploaded file could not be moved to wp-content/uploads/2015/05."
This error comes because of insufficient permission to your user on to the server.
One Quick and dirty way to solve this error is to set 777 permission but some time it may not also work.
Follow this link this will help you http://2surge.com/how-to-fix-the-uploaded-file-could-not-be-moved-to-wp-content-error-message/
Thanks
Try following. Make sure {yourpath} is replaced with correct path
Creates upload directory with super user permission
Change ownership to the current user
I have managed to solve this by updating the reference to Settings Media Store uploads folder.
Go to WordPress admin -> Settings -> Media, and update
Store uploads in this folder
option with what is in yourpublic_html
hosting account.For me the
<base_folder_name>
was different than what was in the hosting account.This is sometimes an issue with file and directory ownership than permissions. Find out the user the php code is executing as using
phpinfo()
page.Once you know the system user, make sure the FTP account you are using is configured to upload the files as that user. If it has been uploaded using different user, use
chown
to change the ownership of the base path to match the user.For example:
I had the same problem here on a Parallels Plesk server. I had to change the access permissions for the webserver/website user using the access options from within the file manager.
Hope this helps!