KickASS deals and offers

Wednesday, 28 September 2016

Apache solr configuration with Drupal 7 -Learn coding drupal 8 & drupal 7

6 comments :

Apache solr configuration with Drupal 7

A quick and simple guide to get Drupal 7 and Apache Solr version 4.0.0 or higher running on your local development machine! For the ones that have been resistant in trying out Apache Solr, this is your chance.

Follow these simple steps and you will become a Solr Master very soon!
This guide has been made for unix and mac users. Windows users can probably use the same guide except for the example folders. If you are using Search API most of these steps are applicable to that project as well.

Download the Apache Solr module from the Apachesolr module and place it in your drupal folder for contributed modules. Typically this is sites/all/contrib Enable ApacheSolr

Download Apache Solr from a mirror near you : https://github.com/salvager/apache-solr-4.0.0


Unpack it somewhere outside your drupal installation and outside your web root/folder. Suggestion would be ~/Servers/solr



Go to drupal folder sites/all/contrib/apachesolr/solr-conf/solr-4.x and copy all files to ~/Servers/solr/example/solr/collection1/conf
1st copy







2nd paste it here




sudo service apache2 restart

Open your command prompt and do cd ~/Servers/solr/example

Type the following command to start the Apache Solr service
java -jar start.jar

If all went well your Solr Server is running now! Congratulations!

Test your solr server admin interface by visiting http://localhost:8983/solr/admin

Go to admin/config/search/apachesolr/settings and click on edit.

Verify if the url http://localhost:8983/solr/ is correctly entered and click ok










To clean registry :- sites/all/modules/registry_rebuild/registry_rebuild.php

local to server
rsync -avzP /var/www/html/local-path/ inhouse@192.168.0.1:/var/domains/server-new/

Generel syntax:
rsync -avzP username@IP:/pathfull .

Drupal staging:
rsync -avzP ikfdgda6@202.154.164.45:/var/www/html .

Blog staging:
rsync -avzP ikfdgdfga6@202.154.164.8:/var/www/blog/fc_blog .

Drupal production:
rsync -avzP ikdrfa5@202.154.164.75:/var/www/html .

Blog production:
rsync -avzP ikhgfha5@202.154.164.44:/var/www/blog/h_blog .
Read More