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?


1 Answer 1


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.