Posted by: sutrisno | November 8, 2014

Install Tomcat 7 and Solr 4.10.2 on Ubuntu 14.04

Screenshot - 11082014 - 01:03:34 PM

Screenshot - 11082014 - 01:04:27 PM

Install Tomcat
sudo apt-get install tomcat7 tomcat7-admin

Download SOLR

tar zxvf solr-4.10.2.tgz
sudo mv solr-4.10.2 /usr/share/solr

Setup Solr
sudo cp /usr/share/solr/example/webapps/solr.war /usr/share/solr/example/multicore/solr.war
sudo cp -r solr/example/lib/ext/* /usr/share/tomcat7/lib
sudo cp -r solr/example/resources/ /usr/share/tomcat7/lib

Edit /usr/share/tomcat7/lib/ and set your log path by setting

Catalina config

cd /etc/tomcat7/Catalina/localhost
sudo gedit solr.xml

add the following to solr.xml

sudo gedit /etc/tomcat7/tomcat-users.xml

add the tomcat user within the users block:

sudo chown -R tomcat7 /usr/share/solr/example/multicore

Test tomcat
sudo service tomcat7 restart

Test Solr
Navigate to http://localhost:8080/solr

source :


  1. Good tutorial, nice and easy. You forgot to include the contents of the solr.xml and tomcat-users.xml files.

  2. Ican’t get in catelina config. please explain
    cd /etc/tomcat7/Catalina/localhost
    there isn’t solr.xml file in /etc/tomcat7/Catalina/localhost please explain what to do.
    sudo gedit solr.xml

      You must create solr.xml files in the folder / etc / tomcat7 / Catalina / localhost / to the editor vi or gedit which contains:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: