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 par
For me it was a disk space issue - my account was simply over its quota and therefore would not allow any increase in the form of a folder creation or plugin installation.
Simply clear some disk space and try again.
I'm an Arch Linux user. My WordPress location is (/srv/http/wordpress). I faced this problem before.
At first, I change my WordPress ownerships to $USER:http.
sudo chown -R -c $USER:http /srv/http/wordpress
(don't go root to change ownership with this command then $USER will be root)
you can check who is the user with
echo $USER
I created an uploads folder in wordpress/wp-content/uploads. Then give the read, write, and execute permission to the user and group of wp-content and wp-content/uploads directory.
sudo chmod 774 wp-content/
sudo chmod 774 wp-content/uploads/
hope it will helps someone.
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:
$ sudo chown -R <user> /path/to/public_html
I was looking for a MAC/ OSX solution and found this related question but it didn't help. The following works for me:
1- Right-click on wp-content
and go to Get Info and change permissions as follow:
After click on the setting gear icon and Apply to enclosed items....
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 your public_html
hosting account.
/home/<base_folder_name>/public_html/wp-content/uploads
For me the <base_folder_name>
was different than what was in the hosting account.
Go to wp-admin/options.php
Under upload_path
replace with exactly wp-content/uploads
(no quotes, no extra slashes)
That worked for me after I had tried to all other solutions for days.