I have chosen Apache Lucene with Solr to learn about advanced search indexing for my web applications but there seems to be a gap in configuration between versions Solr 4 and Solr 5.
Most online material and books get you to setup Apache Tomcat to run the Solr service for version 4. Whereas version 5 tells you to use it using its built-in service.
My web applications are built on the LAMP stack and I would like in the future to use Solr in production and I am wondering what version/configuration is best practice?
The latest stable version of Solr is currently 5.4.0. So, that is the version that you should be using unless there is some other constraint that requires you to use an older version.
By default Solr runs in Jetty, but you can also run in in various other servlet containers. Here is documentation for running it inside Tomcat: https://wiki.apache.org/solr/SolrTomcat
As far as having a LAMP stack, that shouldn't really have much to do with Solr. You should have a webapp that is accessing Solr and is sitting behind an web server (in your case Apache httpd).
Related
is it possible to run Solr 6.4.1 on tomcat?
I read that Solr does not support tomcat anymore, is that true, if yes is there any other option without tomcat?
Yes, any version of Solr from 5 and onwards does not support Tomcat as an alternative officially.
The reasoning for this has been documented on the wiki:
Solr is intended to be a server not a Java web application, similar to mysql or the Apache web server. When Solr was first created, designing it as a web application was a convenient choice, to avoid writing a lot of tricky code to build a network layer. These days, this design decision has become a limiting factor.
When you download Solr and install it onto your machine, it should be Solr that gets started. It should not be necessary to install Solr into a third-party application (servlet container) before it will work.
At this time, Solr is still a webapp, but this is an internal implementation detail, not an immutable property. The intention is to make Solr into a completely standalone application. Startup scripts that start the included container are the first step towards that goal. Jetty might still be the technology used once Solr is a standalone application, but if that happens, it will be internally embedded.
At the moment you can still attempt to run Solr in a different container, as the current version bundles jetty and loads Solr inside jetty, but you can run into unexplainable issues where you'll always suspect the container to be the issue .. and if you have a problem, reporting bugs while running under Tomcat won't do any good.
From one of the comments on the old tomcat page on the community wiki:
If you want to go against recommendations and run 5.3 or later in Tomcat, you can likely still do so, but you will need to inform tomcat about an exploded web application (found in server/solr-webapp) instead of the .war file.
The server/solr_webapp/webapp folder is an exploded web application. Tomcat documentation should be able to tell you how to add such an application.
.. but if you're deploying Solr now, you really shouldn't. Use the bundled version of jetty (which might change to a stand alone version later) and the solr command / script.
They have stopped the support for the same.
Other option could be, you can check out the code and see if you can build the solr. I had tried it for earlier version (3.3).
I am not sure of the current version. But that could be the option for you.
I have posted instructions on how to get solr 6.2 running on Tomcat here. However, these instructions no longer work on Solr 6.3 or 6.4.
Steps to Host Solr 5.3 in Tomcat Server in windows box.
i am able to host Solr 4.7 but there are few files missing in 5.3 so unable to host it.
This is no longer a supported configuration. So, even if it worked, there might be issues later. The strong recommendation is to use the server solution that Solr comes with out of the box.
I had a good experience configuring ColdFusion applications using IIS Web server but my client is asking me to configure the applications using Apache. I found few links where in I did not get the exact required information. My Question is is there any official path to download the Apache. If yes can any one share the path. How do I go after downloading the Apache web server. Does any one have step by step process to configure the Apache in ColdFusion.
By the way I am using ColdFusion 11 enterprise edition. We had multiple instances related to this ColdFusion 11. I had a option to select Apache when going to WSConfig file. But I am not exactly sure if I need to download the software before doing this process.
As per the ColdFusion 11 Support Matrix, Apache 2.2.26 and 2.4 are supported. You can download Apache 2.4 from here.
You can refer to this document, for how to install, configure and run Apache 2.4 under Microsoft Windows.
And lastly, you can refer to ColdFusion 11 Installation guide for installing and configuring CF11 with Apache.
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.
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.
I need to install Apache Tomcat on my linux server space in rackspace.com. I'm not sure which is the best version I need to use.
I also need support for PHP, Java, JSP, servlets and ASP. Do I need to install these separately or does apache/linux support these by default?
If I need to install them separately, which versions of PHP, Java, JSP, Servlets and ASP should I install?
The latest, unless you have a genuine reason for choosing otherwise.
The newer the better, I'd say. The latest stable Tomcat at the time of writing is 6.0.29. If you install Tomcat 5.5, you won't be able to run Servlet 2.5 (which, for example, is a requirement for JSF 2.0).
Although technically possible to run on Tomcat, it's more conventional to run PHP sites on Apache or lighttpd.
Now the ASP-part. ASP is a fairly old Microsoft technology and naturally, Microsoft wants you to use Windows to serve ASP-pages. There are workarounds though. There is the Apache::ASP-project, which adds ASP-support with Perl as language to Apache. There used to be a product by ChiliSoft (now Oracle) that allowed you to run VBScript-based ASPs on Unix but I don't think it's still in active development or even sold.
If it's ASP.NET you need, you have Novell's Mono, which includes a module to run ASP.NET pages on Apache.
Note that Quercus is a Java implementation of PHP. Apparently it can run WordPress and much more http://quercus.caucho.com/