Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a new user of Ubuntu 12.04 64 bit and I want to test WordPress on my local PC installation. I've only installed LAMP and the latest version of WordPress for now. Further actions were

  • creating a directory www in /home, i.e /home/www
  • install wordpress in it.
  • changed Apache to use /home/www instead of /var/www

Apache is running smoothly & wordpress seems to be so as well. However, if try to change my background of my wordpress blog it throws an error

Unable to create directory wp-content/uploads/2012/12. Is its parent directory writable by the server?

Plese help me to resolve my problem.

share|improve this question

The webserver (Apache) runs as user www-data and group www-data by default. Change the filesystem permission on the directory the web application wants to write to - the "parent directory" as mentioned in the error message.

For example, do (prepend with sudo if you're not the current owner and need to elevate your own permissions in order to do it):

chown www-data /path/to/directory

to make www-data the owner which makes it writeable usually, or another approach via groups:

chgrp www-data /path/to/directory
chmod g+w /path/to/directory

If you don't understand this, start reading about how file system permission work in Linux.

share|improve this answer
Thank you gertvdijk... I am new comer to Ubuntu Family, So i have a little knowledge how file system permission work in Linux. – Ankur Dec 13 '12 at 12:11
@Ankur No problem - I suggest to practice it using this tutorial (just one out of many). – gertvdijk Dec 13 '12 at 12:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.