<p>Here are the required Craft 3 file permissions: <a href="https://docs.craftcms.com/v3/installation.html#step-2-set-the-file-permissions" rel="nofollow noreferrer">https://docs.craftcms.com/v3/installation.html#step-2-set-the-file-permissions</a></p>

CC BY-SA 4.0
2018-06-14T12:51:06.043Z
2018-06-14T12:51:06.043Z
Andrea DeMers
<p>Upon running the update tool in the Craft CMS, I get this error.</p>

<p><strong><em>Error: file_put_contents(path/to/file/composer.json): failed to open stream: Permission denied</em></strong></p>

<p>What permissions are causing this error? Is it simply the case of changing the perms on the composer.json file? If so, what should they be?</p>

<p>Thanks!</p>

<manual-updates>
Can't update Craft 3, permissions issue
# Can't update Craft 3, permissions issue

(Asked by: username_0 on 2018-06-14)

Upon running the update tool in the Craft CMS, I get this error.

***Error: file\_put\_contents(path/to/file/composer.json): failed to open stream: Permission denied***

What permissions are causing this error? Is it simply the case of changing the perms on the composer.json file? If so, what should they be?

Thanks!

**Tags:** manual-updates

---

## 1 answers

### Answer by username_1 on 2018-06-14. Score: 1

Here are the required Craft 3 file permissions: <https://docs.craftcms.com/v3/installation.html#step-2-set-the-file-permissions>


---

