i try to install module after command run php bin/magento setup:upgrade error show -> updating modules: the "config.php" deployment config file isn't writable please can you help


2 Answers 2


You can use the following command to set the correct permissions:

chmod 644 path/to/magento/app/etc/config.php

Give permission to your magento2 package.

sudo chmod 777 -R magento2

where magento is your package inside /var/www/html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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