I am working on site speed optimization. I am using Magento2.3.1. I am facing issue related to cache folder is not writable. I gave full permission but still getting cache folder is not writable.My site is working fine but ON Google page speed and Gtmetrix I am facing issue related to cache not writable

enter image description here

enter image description here

Please guide me.

  • you need to give permission to var folder also and page cache also
    – Pramod
    Commented Aug 6, 2020 at 4:40
  • I gave permission to var folder but still not working.
    – Aish
    Commented Aug 6, 2020 at 5:05

2 Answers 2


It seems that your webserver user can't access the directory. You need to change owner of your var folder.

Try this at root of your magento installation directory : sudo chown -R httpuser:httpuser var/

Hope this helps

  • I changed owner of my var folder but still facing issue
    – Aish
    Commented Aug 7, 2020 at 8:16
  • Can you add the result of ls -ali var/ command ?
    – Eirettab
    Commented Aug 7, 2020 at 8:55

This has been reported with some Specific Operating system versions.

can you post what was your Operating system version or upgrade teh version and check.

In one of the ubuntu version we have faced permission issues and on upgrade of that version we got this sorted.

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.