1
votes

I am trying to install Solr 4.6 with Drupal 7. For some reason, I am not able to. Probably, I am trying to install it on a remote server (my website server).

Here are the steps I am doing:-

  • Download Apache Solr Drupal Module from here and placed it in my Drupal modules folder (sites/all/modules/)
  • Enabled Apache Solr search and Apache Solr framework modules in admin/modules
  • Downloaded Apache Solr 4.2 from http://www.dsgnwrld.com/am/lucene/solr/4.6.0/
  • Unpack it outside my drupal installation and outside my web root/folder. (~/srv/www/solr)
  • Went to sites/all/modules/apachesolr/solr-conf/solr-4.x and copied all files to ~/srv/www/solr/example/solr/conf

I am stuck after this. I know I have to access my server at this address ~/srv/www/solr/example through command prompt (Terminal) to start the Apache Service but how can I do that?

Plus, on the site, it's written that I can access the Solr admin interface by visiting http://localhost:8983/solr/admin, but how can I do that when my site is located on a remote server?

Please help.

Thanks.

1

1 Answers

1
votes

I believe you have solr 4.6 (rather than 4.2) from the link you presented but the steps are the same for both.

Although Solr can run in any Java Servlet Container of your choice, the example index includes a small installation of Jetty.

To launch Jetty with the Solr WAR, and the example configs, just run the start.jar ...

user:~$ cd ~/srv/www/solr/example
user:~/srv/www/solr/example$ java -jar start.jar

At that point the server should be listening on 0.0.0.0:8983.
You can then access this server using http://remote.ip.or.hostname:8983/solr/admin (ex. http://8.8.8.8:8983/solr/admin)

You may want to consult the tutorial in the docs for further information.