I am working on Magento2.3.2

When I tried to enable cache types from the admin panel, I am getting the following error.

Path "/opt/bitnami/apps/magento/htdocs/app/etc/" cannot be used with directory "/opt/bitnami/apps/magento/htdocs/app/etc/"

I am not seeing any log also.

I tried changing all permissions by using the following commands

sudo find . -type d -exec chmod 755 {} \; 
sudo find . -type f -exec chmod 644 {} \;

After I used to run above commands, I am getting the following Fatal error:

Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/opt/bitnami/apps/magento/htdocs/var/page_cache" is not writable in /opt/bitnami/apps/magento/htdocs/vendor/magento/zendframework1/library/Zend/Cache.php:209 Stack trace: #0 /opt/bitnami/apps/magento/htdocs/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/opt...') #1 /opt/bitnami/apps/magento/htdocs/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/opt/bitnami/ap...') #2 /opt/bitnami/apps/magento/htdocs/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array) #3 /opt/bitnami/apps/magento/htdocs/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true) #4 /opt/bitnami/apps/magento/htdocs/vendor/magento/framework/App/Cache/Frontend/Factory.php(156): Zend_Cache::factory('Magento\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true) #5 /opt/bit in /opt/bitnami/apps/magento/htdocs/vendor/magento/zendframework1/library/Zend/Cache.php on line 209

  • Did you check the directory permissions?
    – Sukeshini
    Commented Jan 4, 2020 at 5:57
  • @Sukeshini, i updated description Commented Jan 4, 2020 at 5:59
  • you have not assigned proper permission to magento set up. for var directory , chmod -R 777 var/cache/* var/page_cache/* Commented Jan 4, 2020 at 6:54
  • @PadhiyarGaurang, I just updated the permissions, check once, website is not opening Commented Jan 4, 2020 at 7:14

1 Answer 1


You need to give ownership permission to your apache user in magento directory.


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.