# Cannot write into "config" directory after upgrade

**URL:** <https://help.nextcloud.com/t/cannot-write-into-config-directory-after-upgrade/69055>\
**Category:** ℹ️ Support\
**Created:** [January 23, 2020, 6:32pm UTC](https://help.nextcloud.com/t/cannot-write-into-config-directory-after-upgrade/69055 "2020-01-23T18:32:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![quiwy](https://help.nextcloud.com/user_avatar/help.nextcloud.com/quiwy/32/20131_2.png) [@quiwy](https://help.nextcloud.com/u/quiwy)\
**Post date:** [January 23, 2020, 9:37pm UTC](https://help.nextcloud.com/t/cannot-write-into-config-directory-after-upgrade/69055/2 "2020-01-23T21:37:56Z")

</div>

Hi winstonyin,

php-fpm 7.4 service has now protection to access folders on drive.

You can add this to your php-fpm service (`systemctl edit php-fpm.service`):

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

```

THis will give acces to the folders differents folders 😉

For more informations I did a long post here: [[NC18] Problem to access data folder after upgrade to php 7.4](https://help.nextcloud.com/t/nc18-problem-to-access-data-folder-after-upgrade-to-php-7-4/67403/5)

---

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