Category Archives: Apache

Apache

The Apache HTTP Server, commonly referred to as Apache is web server software notable for playing a key role in the initial growth of the World Wide Web.In 2009 it became the first web server software to surpass the 100 million website milestone.

Apache was the first viable alternative to the Netscape Communications Corporation web server (currently named Oracle iPlanet Web Server), and since has evolved to dominate other web servers in terms of functionality and performance[citation needed]. Typically Apache is run on a Unix-like operating system.

Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. The application is available for a wide variety of operating systems, including Unix, FreeBSD, Linux, Solaris, Novell NetWare, Mac OS X, Microsoft Windows, OS/2, TPF, and eComStation. Released under the Apache License, Apache is open-source software.

Apache was originally based on NCSA HTTPd code. The NCSA code has since been removed from Apache, due to a rewrite.
Since April 1996 Apache has been the most popular HTTP server software in use. As of March 2012 Apache was estimated to serve 57.46% of all active websites and 65.24% of the top servers across all domains.

Install Apache Solr on Ubuntu – multicore

1.  Install Tomcat on ubuntu 

sudo apt-get update && apt-get upgrade

sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples

sudo apt-get install libmysql-java

2) Download apache-solr-1.4.1.tar.gz

cd /home/<user-name>/Desktop/

wget -c http://apache.tradebit.com/pub/lucene/solr/1.4.1/apache-solr-1.4.1.zip

unzip apache-solr-1.4.1.zip

sudo cp apache-solr-1.4.1/dist/apache-solr-1.4.1.war /var/lib/tomcat6/webapps/solr.war

sudo cp -R apache-solr-1.4.1/example/solr/ /var/lib/tomcat6/solr/

3) Establish new Solr configuration in Tomcat6

sudo vim /etc/tomcat6/Catalina/localhost/solr.xml

and paste the below given code

<Context docBase=”/var/lib/tomcat6/webapps/solr.war” debug=”0″ privileged=”true” allowLinking=”true” crossContext=”true”>
<Environment name=”solr/home” type=”java.lang.String” value=”/var/lib/tomcat6/solr” override=”true” />
</Context>

4. Create Folder data and Change Solrconfig.xml (For single core) .  create folder in solr in /var/lib/tomcat6/solr/

mkdir data

Change path data in solr/conf/solrconfig.xml

<dataDir>/var/lib/tomcat6/solr/data</dataDir>

5. Enable MultipleCore in Solr 1.4.1

sudo cp -dR apache-solr-1.4.1/example/multicore /var/lib/tomcat6/solr

sudo cp apache-solr-1.4.1/example/multicore/solr.xml /var/lib/tomcat6/solr/solr.xml
sudo cp -R apache-solr-1.4.1/example/multicore/core0 /var/lib/tomcat6/solr/
sudo cp -R apache-solr-1.4.1/example/multicore/core1 /var/lib/tomcat6/solr/
sudo mkdir /var/lib/tomcat6/solr/core0/data
sudo mkdir /var/lib/tomcat6/solr/core1/data
sudo chown -R tomcat6:tomcat6 /var/lib/tomcat6/solr/core0/data/
sudo chown -R tomcat6:tomcat6 /var/lib/tomcat6/solr/core1/data/

6. And at last restart Tomcat

sudo service tomcat6 restart

7. Load  http://localhost:8080/solr/ in your browser

Install Apache Solr on Ubuntu

1.  Install Tomcat on ubuntu

sudo apt-get update && apt-get upgrade

sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples

sudo apt-get install libmysql-java

2) Download apache-solr-1.4.1.tar.gz

cd /home/<user-name>/Desktop/

wget -c http://apache.tradebit.com/pub/lucene/solr/1.4.1/apache-solr-1.4.1.zip

unzip apache-solr-1.4.1.zip

sudo cp apache-solr-1.4.1/dist/apache-solr-1.4.1.war /var/lib/tomcat6/webapps/solr.war

sudo cp -R apache-solr-1.4.1/example/solr/ /var/lib/tomcat6/solr/

3) Establish new Solr configuration in Tomcat6

sudo vim /etc/tomcat6/Catalina/localhost/solr.xml

and paste the below given code

<Context docBase=”/var/lib/tomcat6/webapps/solr.war” debug=”0″ privileged=”true” allowLinking=”true” crossContext=”true”>
<Environment name=”solr/home” type=”java.lang.String” value=”/var/lib/tomcat6/solr” override=”true” />
</Context>

4. Create Folder data and Change Solrconfig.xml (For single core) .  create folder in solr in /var/lib/tomcat6/solr/

mkdir data

Change path data in solr/conf/solrconfig.xml

<dataDir>/var/lib/tomcat6/solr/data</dataDir>

5. And at last restart Tomcat

sudo service tomcat6 restart

6) Load  http://localhost:8080/solr/ in your browser

apache lucene features

1) Its open source
2) Can implement in any languages that are index compatible
3) Support  date ranged, ranked and fielded searching
4) Can sort it using any field
5) Need less primary memory
6) Has powerful, accurate, and efficient search algorithms
7) Support multiple-index searching with merged results
8 )  Cross-Platform Solution
9) Support simultaneous update and searching