Installing Apache Solr 1.4.1 on ubuntu 10.04


Hi friends,

Let’s see How to install this on ubuntu 10.04

Installing Tomcat 6 in Ubuntu 10.04 and Libmysql-java:

$ sudo apt-get update && apt-get upgrade
$ sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples

$ sudo apt-get install libmysql-java

Download apache-solr-1.4.1.tgz from http://lucene.apache.org/solr/ and extract it:
$ cd <to path of extracted solr>
$ sudo cp apache-solr-1.4.1/dist/apache-solr-1.4.1.war /usr/share/tomcat6/webapps/solr.war
$ sudo cp -R apache-solr-1.4.1/example/solr/ /usr/share/tomcat6/solr/

note : we copy solr folder into /usr/share/tomcat6 and it will pointed as solr home in next step.

Create new Solr configuration in Tomcat6:

$ sudo vim /etc/tomcat6/Catalina/localhost/solr.xml

Paste this into file :

<Context docBase="/usr/share/tomcat6/webapps/solr.war" debug="0" privileged="true" allowLinking="true" crossContext="true">
<Environment name="solr/home" type="java.lang.String" value="/usr/share/tomcat6/solr" override="true" />
</Context>
Enable MultipleCore in Solr 1.4.1:

$ sudo cp apache-solr-1.4.1/example/multicore/solr.xml /usr/share/tomcat6/solr/solr.xml
$ sudo cp -R apache-solr-1.4.1/example/multicore/core0 /usr/share/tomcat6/solr/
$ sudo cp -R apache-solr-1.4.1/example/multicore/core1 /usr/share/tomcat6/solr/
$ sudo mkdir /usr/share/tomcat6/solr/core0/data
$ sudo mkdir /usr/share/tomcat6/solr/core1/data
$ sudo chown -R tomcat6:tomcat6 /usr/share/tomcat6/solr/core0/data/
$ sudo chown -R tomcat6:tomcat6 /usr/share/tomcat6/solr/core1/data/
Finally, restart your Tomcat and check it out!

$ sudo service tomcat6 restart

Go to http://localhost:8080/solr/

————————————————

Now, i got the screen like this,

This slideshow requires JavaScript.

I don’t know how to use this and  how to configure.xml file.  B’coz when i search something, i didn’t get anything, i got some errors ly  😦

Advertisements

3 thoughts on “Installing Apache Solr 1.4.1 on ubuntu 10.04

  1. Pingback: Apache solr ==> search platform | my linux world

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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