Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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???

share|improve this question
up vote 3 down vote accepted

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).
share|improve this answer
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
P.S. : Thanks for the link – Nikos D. Sep 22 '11 at 11:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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