Magento – Can’t disable caching

cachemagento2

Trying to disable all cache types in Magento 2 from System > Tools > Cache Management.

But all I get is the following error:

Deployment config file env.php is not writable.

I tried making app/etc/env.php writable (777) but still no luck.

Best Answer

First of all connect to your web server with your telnet software.

Change directory with cd <magento dir>/app/etc

Type chmod -R 777 /var/www/html/magento/app/etc to change mode for env.php file to be writable.

sudo chmod -R 777 app/etc/env.php

I hope this helps you !!

Related Topic