I'm trying to setup properly Solr under a debian machine. It's working ok but the I'm not sure where's the best location for the index files. Currently they are inside the application's folder but I don't really like this approach. I was thinking some of the following :

  • /var/lib/solr/index-name
  • /var/solr/index-name
  • /usr/share/solr

I like the first cause it follows debian's convention but the second is more obvious to me. Any thoughts???


I'd go with the first: /var/lib/solr. Why?

Following the FHS on the var folder:

  1. There is a set of predefined folders inside var. It doesn't mean that you cannot add more, but you could prefer not to make it dirty.
  2. The /var/lib is where programs store the variable information they need to run. (Correct me if I'm wrong but I guess mysql uses /var/lib/mysql, for example).
  • Regarding 2 : Yes, mysql goes there and I guess also redis goes there, etc, etc so I guess yes it makes sense... – Nikos D. Sep 22 '11 at 11:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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