Use the following command to stop Apache service
service httpd stop
Use the following command to stop Apache service
service httpd stop
root@hp-Compaq-Presario-CQ40-Notebook-PC:~# apache2 -v
Server version: Apache/2.4.7 (Ubuntu)
Server built: Mar 10 2015 13:05:59
Use the following command to restart Apache service
service httpd restart
Use the following command to start Apache service
service httpd start
Name-based
Name-based virtual host means that multiple names are running on each IP address.
IP-based.
IP-based virtual host means that a different IP address exists for each website served.
Most configurations are named-based because it only requires one IP address.
/var/log/httpd is the location of log files
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.
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
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