cd [your-module-dir]
export PHP_PREFIX="[your php install full path]"
$PHP_PREFIX/bin/phpize
./configure --enable-[module name]=shared --with-php-config=$PHP_PREFIX/bin/php-config
make
make install
vi php.ini
有2种方法
1.To install as Zend extension:
zend_extension="[your so path]"
2.To install as PHP extension:
extension="[your so path]"
建议使用方法1.php扩展是php老版本遗留下来的;推荐使用zend&zend_api