Breaking News
Loading...
Sunday, July 21, 2013

How to install extension php apache solr

4:25 PM

1. What is apache solr
Solr is written in Java and runs as a standalone full-text search server within a servlet container such as Apache Tomcat or Jetty. Solr uses the Lucene Java search library at its core for full-text indexing and search, and has REST-like HTTP/XML and JSON APIs that make it easy to use from virtually any programming language. Solr’s powerful external configuration allows it to be tailored to almost any type of application without Java coding, and it has an extensive plugin architecture when more advanced customization is required.
2. Install extension php apache solr
- Download  solr extension php
[root@centos ~]# wget http://pecl.php.net/get/solr-1.0.2.tgz
–2013-01-04 14:54:04–  http://pecl.php.net/get/solr-1.0.2.tgz
Resolving pecl.php.net… 76.75.200.106
Connecting to pecl.php.net|76.75.200.106|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 101292 (99K) [application/octet-stream]
Saving to: `solr-1.0.2.tgz’
100%[======================================>] 101,292     24.0K/s   in 4.1s
2013-01-04 14:54:09 (24.0 KB/s) – `solr-1.0.2.tgz’ saved [101292/101292]
Extract the downloaded tar.gz file
[root@centos ~]# tar xzf solr-1.0.2.tgz
[root@centos ~]# cd solr-1.0.2
[root@centos solr-1.0.2]# /opt/php53/bin/phpize
[root@centos solr-1.0.2]# ./configure –with-php-config=/opt/php53/bin/php-config
[root@centos solr-1.0.2]# make
[root@centos solr-1.0.2]# make install
- And pasted the following line inside php.ini
extension=solr.so

0 comments:

Post a Comment

 
Toggle Footer