I have been trying to upload an image into my WordPress dashboard without success. Every time I try to upload the image, I get an error like below:
Unable to create directory wp-content/uploads/2013/08. Is its parent directory writable by the server?
I am using CentOS 6.4 with latest WordPress. My WP is located in /dir1/dir2/dir3/wordpress, and below this, wp-content has "uploads" directory and within this 2013/08 directories. Additionally, I had to create uploads/2013/08 as they did not exist in the original installation. I have changed permission and that too did not work. Same upload error shows still.
This is what I do to see the error from WordPress:
1. Dashboard --> Pages --> 'Add Media'
2. Dashboard --> Media --> 'Add New'
As mentioned, uploading an image shows the error stated above regardless of which image I choose. I have not had any problem installing themes or plugins, just the problem with image upload.
I have rebooted my host, also, and retired image upload without success.
In addition, I also tried these as root:
1. chmod -R 777 /dir1/dir2/dir3/wordpress/wp-content/uploads
2. chgrp -R apache /dir1/dir2/dir3/wp-contents
3. chmod -R g+w /dir1/dir2/dir3/wp-contents
Got directories to look like this:
drwxrwxrwx 5 apache apache 4096 Aug 10 15:23 wp-content
drwxrwxrwx 3 apache apache 4096 Aug 10 15:27 uploads
drwxrwxrwx 3 apache apache 4096 Aug 10 15:27 2013
drwxrwxrwx 2 apache apache 4096 Aug 10 15:27 08
Then retried uploading image again, and still not joy...
My host has LAMP (CentOS) and WordPress - that's it! This is a new installation.
Please could you suggest a fix for this kindly.