How To Install Apache-Solr And Use It With Drupal And ISPConfig (OpenSUSE/Debian)
How To Install Apache-Solr And Use It With Drupal And ISPConfig (OpenSUSE/Debian)Solr is the popular, blazing fast open source enterprise search platform from the Apache Lucene project. Its major features include powerful full-text search, hit highlighting, faceted search, dynamic clustering, database integration, and rich document (e.g., Word, PDF) handling. I use this on OpenSUSE and Debian (minor tweaks on Debian, just paths to correct but it's almost the same). Packages from 4 of March 2011.
Search On SteroidsInstall Drupal. And use ISPConfig 2. Use this .htacess file in the root of your Drupal installation: <IfModule mod_rewrite.c> Alter the .htacess file in /web/sites/default/files and comment: #SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 Install Drupal. This tutorial doesn't cover full Drupal installation. Log in as root or sudo as you wish. Install some dependencies Drupal needs: pecl install uploadprogress Also install Java 1.5 (gives error if 1.6) on your server. (This tutorial doesn't cover Java installation.) Open your php.ini... nano -w /etc/php5/apache2/php.ini ... and paste the following extensions uploadprogress, apc and solr so the extensions load with PHP: ; Directory in which the loadable extensions (modules) reside. Save your file and restart webserver: /etc/init.d/apache2 restart cd /tmp Copy configuration from your Drupal installation, in my case /srv/www/web11/web: cp /srv/www/web11/web/sites/all/modules/apachesolr/solrconfig.xml /usr/share/apache-solr/example/solr/conf/solrconfig.xml cd apache-solr/example In your browser, test it (remember to open in ISPConfig firewall port 8983): http://yourwebsite.com:8983/solr/admin/ TEST OK! ctrl+c in your terminal and apache-solr ends... But never mind. Let's make a start script so it starts solr when system boots: nano -w /etc/init.d/solr And paste this script: #!/bin/sh -e Make it executable: chmod a+rx /etc/init.d/solr Check what is booting: chkconfig --list Oh no! solr is not booting. Of course not! chkconfig --add solr Then try to stop it: service solr stop Oh. It's not working? Let's try to start it: service solr start Test on your browser. http://yourdomain.com:8983/solr/admin/ It's ALIVE! apache-solr, search on steroids! Now you can reboot your server, too, and see apache-solr working. :)
|



Recent comments
7 hours 55 min ago
12 hours 54 min ago
14 hours 20 min ago
15 hours 13 min ago
16 hours 56 min ago
21 hours 20 min ago
22 hours 12 min ago
1 day 25 min ago
1 day 13 hours ago
1 day 15 hours ago