After I make a backup from adminhtml, it shows up in the list and it shows up in the backend too. I have an option to download the backup TGZ file, as shown here:

enter image description here

When I click it though, the download fails. Chrome says "Failed - Network error": enter image description here

This happened after I accidentally deleted the entire var/ folder under my Magento root directory.

How do I fix this?

1 Answer 1


Can you create a var/ folder and give it 777 permission. Use below Command:

magento_root>  chmod 777 -R var/

After that check .htaccess in var/ folder and replace its content with :

#Order deny,allow 
#Deny from all

Hope this helps you !!!

  • Are the hashes necessary in the .htaccess file?
    – Mingle Li
    Aug 4, 2018 at 21:09
  • No it's not. This file restrict the download from var/ folder. May be now you are able to download the backup tz file. Aug 6, 2018 at 5:53
  • Did not work. All tgz files are chmoded to 777 but same error occurs. Do i need to reflush cache or something?
    – Mingle Li
    Aug 6, 2018 at 15:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.