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

1
  • 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, 2018 at 5:16

4 Answers 4

0

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

2
  • its working but website load not properly
    – Surya
    Jul 25, 2018 at 5:37
  • can you share url or screen shot if styles and java script is not loading please make sure you run php bin/magento setup:static-content:deploy Jul 25, 2018 at 5:42
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
1
  • This error coming many time after run the commond
    – Surya
    Jul 25, 2018 at 9:47
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
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

1
  • Get repeating same error after upgrade setup
    – Surya
    Jul 25, 2018 at 9:49

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.