Installing Solr on Windows with Wamp

Installing Solr on Windows with Wamp

Solr is a great tool for full-text searching and more, from Apache Software Foundation. Its based on Apache Lucene search library and extends it. In this post I will let you know how to install Solr on Windows and integrating it with WAMP. Integration with WAMP is not mandatory if you are not using it.

The esyest way to install solr on Windows is to use Solr installer from BitNami. This can be found here http://bitnami.com/stack/solr. Download the installer and run it with administrative rights. Try to keep the installation path simple something like “c:/solr/” will be appropriate.

It will also install an apache server so if you don’t have wamp or apache already install than its super easy, just go with the flow. If you already have wamp installed than make this apache listen on some available port  other than 80 (where wamp apache is listening).

Once the setup is complete Solr will be available for use in port selected during setup (see no big deal). Now if you have wamp and you don’t want to have two apache services running do the following steps.

  • Enable proxy_module and proxy_http_module via wamp menu or directly from apache conf file.
  • Open httpd.conf file and add following line at the end of the file

    Note that the path here should be correctly pointing to the solr.conf file. Use the path where you installed the Solr.
  • Now restart the wamp apache via wamp menu. If it starts correctly than its cool, otherwise check if you have correctly enabled the said modules, and path to solr config file.
  • Now check http://localhost/solr/ this should show the dashboard for solr.
  • Remember the extra apache service we need to disable it so it does not start automatically as we don’t need it. So goto Control Panel > Administrative Tools > Services , double click “solrApache” service and change its “Startup Type” to “Manual”. Now it will not start once your system is restated.

Happy solr searching

By | 2017-02-12T18:33:01+00:00 May 19th, 2013|7 Comments

About the Author:

Waseem is our consultant for Sphinx Search, Elastic and Solr. He is lamp stack backend developer and has 14 years of experience of development. His areas of interest (other than search) are NoSQL and BigData tools.

7 Comments

  1. Mihir April 21, 2014 at 10:33 am - Reply

    That was exact solution what we are looking for….Thank you very much.

    • sphinx April 21, 2014 at 4:42 pm - Reply

      You are welcome!

  2. Anurag June 10, 2014 at 4:50 am - Reply

    Very Helpful, Thx.

  3. Christophe June 19, 2014 at 9:40 am - Reply

    it was exactly what I was looking for but unfortunatly even if I did exactly what was said, it’s not working.
    wamps modules are enabled and the path to solr is correct too but no luck for me …

  4. Daimian May 7, 2015 at 7:33 pm - Reply

    Thankyou… works well after troubleshooting with windows firewall to get the solr working.

  5. sasha September 27, 2015 at 10:05 am - Reply

    hi thanks for your help . is it a windows installer for sphinx like solr?

  6. vikash February 23, 2016 at 12:02 pm - Reply

    SolrCore Initialization Failures

    php: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core php: Error loading solr config from C:Bitnamisolr-5.4.1-3apache-solrsolrphpconfsolrconfig.xml
    new_core: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core new_core: Error loading solr config from C:Bitnamisolr-5.4.1-3apache-solrsolrnew_coreconfsolrconfig.xml

Leave A Comment