The /wp-content directory isn’t writable by the web server.
chmod 0777 /var/www/wordpress/wp-content
– let wordpress create the uploads folder on the first media upload
– then put the permissions on /wp-content back where they were and see if that changes the symptom.
Things usually go much smoother on a local Ubuntu development site (assuming a default, out of the box installation) if your files are owned by your user account, and group owned by www-data, (assuming Apache is running as the default user) but you’ll find a huge number of permission schemes and suggestions posted around the net that might fit your particular installation.
Just one such suggestion: chown -R [username]:www-data /var/www/wordpress
if your files are owned by your user account, and group owned by www-data
As I said, the output of ls -la of /var/www/ gives
drwxrwxrwx 5 nobody nogroup 4096 Feb 4 00:31 wordpress
(I’m not changing the output by renaming groups/owner. This is the exact permissions)
The owner is ‘nobody’ and the group owned by ‘nogroup’.
Is this a possible mistake that causes problems?
I don’t know enough about your environment (how you’re running apache and php) to comment on the user:group scheme other than to say that in a vanilla installation on Ubuntu, Apache usually runs as ‘www-data`
This message:
Unable to create directory wp-content/uploads/2015/02. Is its parent directory writable by the server?
Means this directory:
/wp-content
..isn’t writable to the web server.
chmod 0777 /var/www/wordpress/wp-content
– let wordpress create the uploads folder on the first media upload
– then put the permissions on /wp-content back where they were and see if that changes the symptom.
wordpress/wp-content/ didn’t have full permissions.
Thanks @claytonjames
Have you tried to get rid of the dot at the end?
@ibropalic
I think that could just be punctuation (a period) at the end of the first sentence in the error message that’s being quoted. π
Running my blog on a hostgator/wp platform. Cannot upload header image. Get this message: Unable to create directory wp-content/uploads/2015/02. Is its parent directory writable by the server?
Who knows what this means? Please help.
@elva_lee – you need to start a new thread here:
https://ww.wp.xz.cn/support/forum/how-to-and-troubleshooting#postform
This thread is for sites installed on local computers – which yours is not.