1,进入到PHP源码目录中的ext中的openssl目录
2,phpize
3,./configure --with-openssl --with-php-config=/usr/local/php/bin/php-config
4,make&&make install
过程中可能出现libssl找不到,执行下面的命令再重新执行4、执行安装
yum install openssl yum install openssl-devel