Due to the lack of an official Apache Solr Package in Debian Squeeze 6.0 this post will briefly describe the installation of tomcat7 together with Apache (Lucene) Solr from Source.
Install tomcat7 package:
apt-get install tomcat7
Download Apache Solr from here, for example:
cd /opt/ && wget http://apache.lehtivihrea.org//lucene/solr/3.4.0/apache-solr-3.4.0.tgz
unpack the package
tar xzfv apache-solr-3.4.0.tgz
copy the solr file to tomcat webapps directory
cp apache-solr-3.4.0/dist/apache-solr-3.4.0.war /var/lib/tomcat7/webapps/solr.war
copy example configs and files to tomcat solr directory
cp -fr example/solr/ /var/lib/tomcat7/
change owner to tomcat
chown -R tomcat7:tomcat7 /var/lib/tomcat7/solr/
restart tomcat
/etc/init.d/tomcat restart
If everything went well you should be able to see the Solr Admin page on http://yourhost.com:8080/solr/admin.
Have Fun!



