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