安装PHP成功后,进入 PHP 的源码包

#cd /usr/local/src/php-5.6.8

进入openssl扩展模块的目录

#cd ext/openssl

在当前目录下执行

mv config0.m4   config.m4

#/usr/local/php/bin/phpize //这里为你自己的phpize路径,如果找不到,可以用whereis phpize查找

#./configure --help |grep openssl 查看安装openssl扩展需要的相关选项

#./configure --with-openssl --with-php-config=/usr/local/php/bin/php-config 描红的是安装每个扩展的必选项

#make

#make install