# Nextcloud 21 Upgrade: Cannot write into "config" directory!

**URL:** <https://help.nextcloud.com/t/nextcloud-21-upgrade-cannot-write-into-config-directory/109772>\
**Category:** ℹ️ Support\
**Tags:** nc21, php, apache, archlinux\
**Created:** [March 3, 2021, 2:18pm UTC](https://help.nextcloud.com/t/nextcloud-21-upgrade-cannot-write-into-config-directory/109772 "2021-03-03T14:18:57Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![didi44](https://help.nextcloud.com/user_avatar/help.nextcloud.com/didi44/32/41110_2.png) [@didi44](https://help.nextcloud.com/u/didi44)\
**Post date:** [March 4, 2021, 8:37pm UTC](https://help.nextcloud.com/t/nextcloud-21-upgrade-cannot-write-into-config-directory/109772/9 "2021-03-04T20:37:03Z")

</div>

Hi !

Do you use php-fpm ?  
If you use it, maybe it can help you :

`systemctl edit php-fpm.service` and add :

```auto
[Service]
ReadWritePaths = /mnt/euler/nextcloud/data/
ReadWritePaths = /usr/share/webapps/nextcloud/apps
ReadWritePaths = /etc/webapps/nextcloud/config/

```

Source : [Cannot write into "config" directory after upgrade - #2 by quiwy](https://help.nextcloud.com/t/cannot-write-into-config-directory-after-upgrade/69055/2)

> [@trymybest](#):
>
> The only thing I can come up with at this points is to completely remove everything, reinstall nextcloud, restore a backup of the database and hope that it then somehow works.

Yes, unfortunately. I don’t have another idea but if you need help we are here !!

---

_[View the full topic](https://help.nextcloud.com/t/nextcloud-21-upgrade-cannot-write-into-config-directory/109772)._
