• I have bought a wordpress theme.
    I have successfully installed wordpress and I’m running it through localhost. (I’m running Ubuntu)
    However, when I try to upload the theme I get the following error message:
    Unable to create directory wp-content/uploads/2015/02. Is its parent directory writable by the server?

    /var/www/wordpress has full permissions.

    This is the output given from ls -la:
    drwxrwxrwx 5 nobody nogroup 4096 Feb 4 00:31 wordpress

    What’s the problem? Moreover there is no directory /wordpress/wp-content/uploads and I don’t know if it should be there (since I have never uploaded any themes -yet-)

Viewing 9 replies - 1 through 9 (of 9 total)
  • 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

    Thread Starter gmyrianthous

    (@gmyrianthous)

    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.

    Thread Starter gmyrianthous

    (@gmyrianthous)

    wordpress/wp-content/ didn’t have full permissions.

    Thanks @claytonjames

    You’re welcome!

    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.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Localhost: Unable to create directory wp-content/uploads/2015/02.’ is closed to new replies.