2

I am using Varnish cache on Magento 2.1, and I need to disable the cache for upgrading purpose.

I go to System> Tools> Cache Management, and select all the cache types, and choose "disable" and submit.

But I this error error:

Deployment config file env.php is not writable.

I tried to chmod app/etc/env.php and app/etc/config.php to writable (777), but still can't disable the cache.

Any idea why this is happening?

thanks!

asked Oct 24, 2016 at 8:23

1 Answer 1

2

Use a Command prompt with php bin/magento cache:disable

answered Oct 24, 2016 at 8:31
5
  • Yes, this is the workable way even if env.php still shows the above error Commented Oct 24, 2016 at 8:42
  • it got resolved when You additionally set the write permission for app/etc/config.php apart from the env.php file Commented Oct 24, 2016 at 8:55
  • does it work for you? as illustrated in the question, I tried to chmod app/etc/env.php and app/etc/config.php to writable (777), but still can't disable the cache. Commented Oct 24, 2016 at 9:48
  • Also make sure env.php and config.php are owned by the Magento file system owner, not by the web server user. (Both files should be owned by <magento file system owner>:<web server group>) Commented Oct 24, 2016 at 16:35
  • for apache, should it be www-data:www-data? Commented Oct 25, 2016 at 9:59

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.