cancel
Showing results for 
Search instead for 
Did you mean: 

There are both var and var1 folders in my directory (Magento 2.1)

SOLVED

There are both var and var1 folders in my directory (Magento 2.1)

I've just checked my directory and it shows both var folder and var1 folder.

The contents look similar. I need to remove one of them in order to reduce space but I'm not sure which one is being used by the system and which one is not.

Any ideas why this happened and how I can find out which one to remove?

Thoughts gratefully received

Any more questions please let me know

Thank you for your help,

Dan

[Magento 2.1/Siteground hosting]

Tags (2)
2 REPLIES

Re: There are both var and var1 folders in my directory (Magento 2.1)

Hi @simonsmithWOS,

 

A default instance will have the var directory on your Magento's root directory.

/var1 isn't a default directory so should be fine to think that there is a copy created for somebody with access to you your server.

 

Maybe you want to create a tar backup using this command from your Magento's root path:

 

tar zcvf var1.tgz var1

Then you should be able to delete or move the var1 directory.

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: There are both var and var1 folders in my directory (Magento 2.1)

Awesome,

Thank you for replying Damien. This does seem to be the case, it must have been a copy done by one of the hosting team to solve another problem, only they didn't tell me about it.

THANK YOU SIR!