Cài đặt extension solr trên centos

1. Cài đặt extension php apache solr

- Tải gói 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]
-  Giải nén gói tar.gz

[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

Bài viết này có ích cho bạn không? 0 phiếu cảm nhận dễ hiểu & thực hiện (6 Phiếu)