# Unable to create directory wp-content/uploads/. Is its parent directory writable by the server? Permission Issues

**URL:** <https://community.kinsta.com/t/unable-to-create-directory-wp-content-uploads-is-its-parent-directory-writable-by-the-server-permission-issues/345>\
**Category:** Bug Reports\
**Created:** [February 9, 2021, 2:50am UTC](https://community.kinsta.com/t/unable-to-create-directory-wp-content-uploads-is-its-parent-directory-writable-by-the-server-permission-issues/345 "2021-02-09T02:50:30Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [February 17, 2021, 7:53pm UTC](https://community.kinsta.com/t/unable-to-create-directory-wp-content-uploads-is-its-parent-directory-writable-by-the-server-permission-issues/345/15 "2021-02-17T19:53:22Z")

</div>

Thanks for testing that. Are you familiar with using Terminal? Could you try the following steps?

**Run the following:**

`docker exec -it devkinsta_fpm bash`

**Then run this:**

`echo "IyEvYmluL2Jhc2gKZmlsZXM9KHdwLWFkbWluIHdwLWNvbnRlbnQgd3AtaW5jbHVkZXMpCmVjaG8gIlJlc2V0dGluZyBmaWxlIHBlcm1pc3Npb25zLCB0aGlzIG1heSB0YWtlIGEgbW9tZW50Li4uIgplY2hvICJSZXNldHRpbmcgb3duZXJzaGlwLi4uIjsKY2hvd24gd3d3LWRhdGE6d3d3LWRhdGEgLVIgL3d3dy9raW5zdGEvcHVibGljLyoKZm9yIGkgaW4gIiR7ZmlsZXNbQF19IgpkbwogIGVjaG8gIlJlY3Vyc2l2ZWx5IHNldHRpbmcgZGlyZWN0b3J5IHBlcm1pc3Npb25zIHRvIDc1NSBvbiAkaS4uLiI7CiAgZmluZCAvd3d3L2tpbnN0YS9wdWJsaWMgLXR5cGUgZCAtbmFtZSAkaSAtZXhlYyBjaG1vZCAtUiA3NTUge30gKwogIGVjaG8gIlJlY3Vyc2l2ZWx5IHNldHRpbmcgZmlsZSBwZXJtaXNzaW9ucyB0byA2NDQgb24gJGkuLi4iOwogIGZpbmQgL3d3dy9raW5zdGEvcHVibGljIC10eXBlIGYgLW5hbWUgJGkgLWV4ZWMgY2htb2QgLVIgNjQ0IHt9ICsKZG9uZQplY2hvICJQZXJtaXNzaW9ucyBoYXZlIGJlZW4gcmVzZXQuIjs=" | base64 -d | bash`

To translate, this will reset permissions. Here’s whats going on above:

```auto
#!/bin/bash
files=(wp-admin wp-content wp-includes)
echo "Resetting file permissions, this may take a moment..."
echo "Resetting ownership...";
chown www-data:www-data -R /www/kinsta/public/*
for i in "${files[@]}"
do
  echo "Recursively setting directory permissions to 755 on $i...";
  find /www/kinsta/public -type d -name $i -exec chmod -R 755 {} +
  echo "Recursively setting file permissions to 644 on $i...";
  find /www/kinsta/public -type f -name $i -exec chmod -R 644 {} +
done
echo "Permissions have been reset.";

```

Let me know if that works for you!

_Edit: Added file and directory settings here on September 1, 2021._

---

_[View the full topic](https://community.kinsta.com/t/unable-to-create-directory-wp-content-uploads-is-its-parent-directory-writable-by-the-server-permission-issues/345)._
