Ok, I've been following this tutorial on getting Solr installed on a server and accessible through Drupal. My question is my placement of Solr in the correct spot?
I know my Java works, testing with java -version
I know my Tomcat works, tested with service tomcat6 start: Starting tomcat6 [ OK ]
Note: Although I can't access Tomcat via http:website.com:8080 (I left the port default)
My current setup follows:
/usr/bin/java (Java installation - via yum)
/usr/share/tomcat6 (Tomcat installation - via yum)
/opt/solr (Solr Instance Installation - manually)
/opt/share/tomcat6/solr/drupal-solr (One Solr Core - manually)
/home/website1/public_html (just a site - I'd like to use Solr here)
/home/website2/public_html (just another site)
/home/website3/public_html (just another site)
As stated, "Solr is capable of providing multiple search indexes, or cores, using just one instance of the Solr application. Each core is independently configured, and there is a single configuration file to define each of the cores."
So say if my website1 needs access to one of my cores of Solr. Would this core need to be installed at...
/home/website1/ (where my Solr Core should be?)
/home/website1/public_html (my website files - drupal install)
...correct? ...or can I leave my Solr and everything else installed in root above all my websites?
You may debug Tomcat by
curl localhost:8080
if you see Tomcat response, then may be outbound traffic from port 8080 is blocked in security groups or IPTABLES of your webserverhttp://askubuntu.com/questions/143785/what-port-is-tomcat-6-running-on
Yes, you can install Solr anywhere. You have to let tomcat know where Solr is installed, which is the Step 5: Create the Solr context file in the documentation you have referred to.
Suppose your Solr is at:
/solr
Suppose your multi-cores names are site1, site2, site3, then the multicore structure will look like:
/solr
/solr/site1
/solr/site2
/solr/site3
Yes, each core will have its own conf directory, with its unique config files such as solrconfig.xml, schema.xml, synonyms.txt etc...
Now if your tomcat is running on port 8080, and suppose your IP is 10.20.30.40, you will be able to access listing of all cores at: 10.20.30.40:8080/solr/