Reader small image

You're reading from  Apache Solr High Performance

Product typeBook
Published inMar 2014
Reading LevelIntermediate
Publisher
ISBN-139781782164821
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Surendra Mohan
Surendra Mohan
author image
Surendra Mohan

Surendra Mohan, who has served a few top-notch software organizations in varied roles, is currently a freelance software consultant. He has been working on various cutting-edge technologies like Drupal, Moodle, Apache Solr, ElasticSearch, Node.js, SoapUI, and so on for the past 10 years. He also delivers technical talks at various community events like Drupal Meetups and Drupal Camps. To find out more about him, his write-ups, technical blogs, and much more, go to http://www.surendramohan.info/. He has also written the books Administrating Solr and Apache Solr High Performance published by Packt Publishing and has reviewed other technical books such as Drupal 7 Multi Site Configuration and Drupal Search Engine Optimization, as well as titles on Drupal commerce, ElasticSearch, Drupal related video tutorials, titles on OpsView, and many more. Additionally, he writes technical blogs and articles with SitePoint.com. His published blogs and articles can be found at http://www.sitepoint.com/author/smohan/.
Read more about Surendra Mohan

Right arrow

Prerequisites for Solr


Before we get ready for the installation, you need to learn about the components necessary to run Apache Solr successfully and download the following prerequisites:

Tip

It is recommended that you choose the latest version of the preceding components due to the fact that the latest version has security patches implemented, which are lacking in the older ones. Additionally, you may use any version of these components, but keep in mind that they are compatible with each other and are secure enough to handle intruders.

Installing components

Once you have the previously mentioned installers ready, you may proceed with the installation by performing the following steps:

  1. Install XAMPP and follow the instructions.

  2. Install the latest Java JDK.

  3. Install Tomcat and follow the instructions.

  4. By now, there must be a folder called /xampp in your C: (by default). Navigate to the xampp folder, find the xampp-control application, and start it, as shown in the following screenshot:

  5. Start Apache, MySQL, and Tomcat services, and click on the Services button present at the right-hand side of the panel, as shown in the following screenshot:

  6. Locate Apache Tomcat Service, right-click on it, and navigate to Properties, as shown in the following screenshot:

  7. After the Properties window pops up, set the Startup type property to Automatic, and close the window by clicking on OK, as shown in the following screenshot:

  8. For the next few steps, we will stop Apache Tomcat in the Services window. If this doesn't work, click on the Stop option.

  9. Extract Apache Solr and navigate to the /dist folder. You will find a file called solr-4.3.1.war, as shown in the following screenshot (we need to copy this file):

  10. Navigate to C:/xampp/tomcat/webapps/ and paste the solr-4.3.1.war file (which you copied in the previous step) into the webapps folder. Rename solr-4.3.1.war to solr.war, as shown in the following screenshot:

  11. Navigate back to <ApacheSolrFolder>/example/solr/ and copy the bin and collection1 files, as shown in the following screenshot:

  12. Create a directory in C:/xampp/ called /solr/ and paste the ApacheSolrFolder>/example/solr/ files into this directory, that is, C:/xampp/solr, as shown in the following screenshot:

  13. Now, navigate to C:/xampp/tomcat/bin/tomcat6, click on the Java tab, and copy the command -Dsolr.solr.home=C:\xampp\solr into the Java Options section, as shown in the following screenshot:

  14. Now its time to navigate to the Services window. Start Apache Tomcat in the Services window.

  15. Now, you are done with installing Apache Solr in your local environment. To confirm, type http://localhost:8080/solr/admin/ and hit the Enter key on the keyboard. You should be able to see Apache Solr's dashboard.

Previous PageNext Page
You have been reading a chapter from
Apache Solr High Performance
Published in: Mar 2014Publisher: ISBN-13: 9781782164821
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Surendra Mohan

Surendra Mohan, who has served a few top-notch software organizations in varied roles, is currently a freelance software consultant. He has been working on various cutting-edge technologies like Drupal, Moodle, Apache Solr, ElasticSearch, Node.js, SoapUI, and so on for the past 10 years. He also delivers technical talks at various community events like Drupal Meetups and Drupal Camps. To find out more about him, his write-ups, technical blogs, and much more, go to http://www.surendramohan.info/. He has also written the books Administrating Solr and Apache Solr High Performance published by Packt Publishing and has reviewed other technical books such as Drupal 7 Multi Site Configuration and Drupal Search Engine Optimization, as well as titles on Drupal commerce, ElasticSearch, Drupal related video tutorials, titles on OpsView, and many more. Additionally, he writes technical blogs and articles with SitePoint.com. His published blogs and articles can be found at http://www.sitepoint.com/author/smohan/.
Read more about Surendra Mohan