# /site/accounts is not writable

**URL:** <https://forum.getkirby.com/t/site-accounts-is-not-writable/8881>\
**Category:** Questions\
**Tags:** v2\
**Created:** [October 29, 2017, 4:27pm UTC](https://forum.getkirby.com/t/site-accounts-is-not-writable/8881 "2017-10-29T16:27:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shiny](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@Shiny](https://forum.getkirby.com/u/Shiny)\
**Post date:** [October 29, 2017, 4:27pm UTC](https://forum.getkirby.com/t/site-accounts-is-not-writable/8881/1 "2017-10-29T16:27:22Z")

</div>

Hi everyone,

after moving my Kirby installation to a new server the panel says

```
Kirby encountered the following issues during installation …

1. /site/accounts is not writable
2. The thumbs folder must be writable.
3. The content folder and all contained files and folders must be writable.
4. /assets/avatars is not writable

```

I tried to search for an answer and checked some of the things already mentioned in the forums. For example all file permissions are set to 775 already. mb-string is enabled. The FTP user has permission to write. Settings the permission of the &sites/accounts folder to 777 works but that shouldn’t be the solution here i guess 🙂

I’m running the following versions:

- PHP Version 7.1.6
- Kirby Version 2.5.6

Could you help me please? Thanks.

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [October 29, 2017, 4:54pm UTC](https://forum.getkirby.com/t/site-accounts-is-not-writable/8881/2 "2017-10-29T16:54:48Z")

</div>

Check the folder ABOVE all of these. as in `mysitefolder/site/accounts` is writable.

if `mysitefolder` is not writable, neither will site or accounts be even if those folders are set.

In other words, every folder in the full path must be writable.

Check also the user:group settings are correct (i think this might be the case here because the folder may have your username when they were created but apache/php etc run under a different user account and therefore don’t have permission). You may have to check with your webhost what that correct user:group should be but heres a [guide](https://www.namecheap.com/support/knowledgebase/article.aspx/1034/29/error-you-do-not-have-permission-to-access).

`mysitefolder` is probably really called `public_html` or `www` or `public`

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 29, 2017, 5:33pm UTC](https://forum.getkirby.com/t/site-accounts-is-not-writable/8881/3 "2017-10-29T17:33:16Z")

</div>

Here is an example bash script I run after deploying Kirby

```auto
#!/bin/sh
DIRS="assets content kirby panel site thumbs"
FILES="index.php"

for dir in $DIRS;do
 sudo chown -R www-data.www-data "$dir"
 find "$dir" -type d -print0 | xargs -0r sudo chmod 775
 find "$dir" -type f -print0 | xargs -0r sudo chmod 664
 find "$dir" -type f \( -name *.pl -o -name *.cgi \) -print0 | xargs -0r sudo chmod 775
done

for file in $FILES;do
 sudo chown www-data.www-data "$file"
 sudo chmod 664 "$file"
done

exit 0;

```

(note that there are some files missing in the files list because they are not relevant to my setup)

You would have to adapt the file owner for your environment.

When I used to deploy with git, I used this as a post-commit/post-merge hook

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:31pm UTC](https://forum.getkirby.com/t/site-accounts-is-not-writable/8881/4 "2025-02-06T17:31:51Z")

</div>


