安装openssl扩展
cp config0.m4 config.m4
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
遇见问题
configure: error: Cannot find OpenSSL’s <evp.h>
解决
yum install openssl openssl-devel
make
make install
cd /usr/local/php/lib/php/extensions/no-debug-zts-20121212/
cp openssl.so ../
在php.ini 中添加
extension=openssl.so