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!
1 Answer 1
Use a Command prompt with php bin/magento cache:disable
-
Yes, this is the workable way even if env.php still shows the above errorgreentealeaf– greentealeaf2016年10月24日 08:42:47 +00:00Commented 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 fileMage Rider– Mage Rider2016年10月24日 08:55:09 +00:00Commented 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.greentealeaf– greentealeaf2016年10月24日 09:48:52 +00:00Commented Oct 24, 2016 at 9:48
-
Also make sure
env.phpandconfig.phpare 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>)Steve Johnson– Steve Johnson2016年10月24日 16:35:14 +00:00Commented Oct 24, 2016 at 16:35 -
for apache, should it be www-data:www-data?greentealeaf– greentealeaf2016年10月25日 09:59:00 +00:00Commented Oct 25, 2016 at 9:59