Installing the PHP Sphinx Extension Module

Source: Internet
Author: User

Turn from

http://blog.csdn.net/fenglailea/article/details/38115821

First you must have installed the Sphinx

How to install Sphinx see: Http://blog.csdn.net/fenglailea/article/details/38111661#t0

Enter the Sphinx installation directory Api/libsphinxclient

#libsphinxclient installation (required by PHP module)

CD sphinx-2.2.3-beta/api/libsphinxclient
./configure--prefix=/usr/local/sphinx
Make && make install
Installing the PHP Sphinx Extension module

#如果没有扩展安装包, download first
wget http://pecl.php.net/get/sphinx-1.3.2.tgz
Tar zxvf sphinx-1.3.2.tgz
CD sphinx-1.3.2
/var/lanmps/php/bin/phpize
./configure--with-php-config=/var/lanmps/php/bin/php-config--with-sphinx=/usr/local/sphinx
Make
Make install

PHP Configuration

Modify PHP.ini,
1. If the extended directory has been previously configured, pass

Directories that are prompted after a successful installation of the #extension_dir directory based on the Sphinx extension
Extension_dir = "/var/lanmps/php/lib/php/extensions/no-debug-non-zts-20121212/"
2. Enable extensions in the configuration file

[Sphinx]
Extension=sphinx.so

Installing the PHP Sphinx Extension Module

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.