下载
wget https://github.com/Qihoo360/QConf/archive/1.2.1.tar.gz
解压
tar -zxf 1.2.1.tar.gz
进入目录
cd QConf-1.2.1/
mkdir build && cd build
cmake ..
make
make install
/usr/local/php56/bin/phpize
./configure --with-php-config=/usr/local/php56/bin/php-config
--with-libqconf-dir=/usr/local/qconf/include
--enable-static LDFLAGS=/usr/local/qconf/lib/libqconf.a
make
cp -v modules/qconf.so /usr/local/php56/lib/php/extensions/no-debug-non-zts-20131226/
在php.ini最后添加extension=qconf.so
/etc/init.d/php-fpm reload
php -m 看见qconf出现了