0

I am creating magento website and run stativcontent deploy -f after that i get Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/home/soft/public_html/megahaat.tk/var/cache/" is not writable in .. how to fix it

Rahul Singh
  • 1,650
  • 2
  • 19
  • 40
Surya
  • 11
  • 4
  • if you are using linux environment Run the command from magento root directory "chmod -R 0777 var/ pub/ generated/" to give permission – Hariharan Jul 25 '18 at 05:16

4 Answers4

0

If you are using Linux in your magento root directory in command line run sudo chmod -R 777 var/cache/

Yasir Latif
  • 196
  • 13
0

Give Permission Cache folder

Run the command from magento root directory

sudo chmod -R 777 /var/cache

Also give the permission of pub/static folder

sudo chmod -R 777 /pub
Rahul Singh
  • 1,650
  • 2
  • 19
  • 40
0

1) Please set var folder 777 permission to use command in CMD sudo chmod -R 777 /var or sudo chmod -R 777 /pub

php bin/magento cache:flush
php bin/magento cache:clean

2) When you using FTP please set permission

enter image description here

Shorabh
  • 1,508
  • 12
  • 18
0

If you are using Linux in your magento root directory in command line run sudo chmod -R 777 var/cache/

after

php bin/magento indexer:reindex
php bin/magento cache:flush
php bin/magento cache:clean
Rv Singh
  • 1,617
  • 15
  • 34