php 编译openssl

1. 从源码中吧ext/openssl/   复制到安装目录的inclue/php/ext/目录下

2. 在目录下执行/usr/local/php/bin/phpize

3./configure --with-openssl --with-php-config=/usr/local/php/bin/php-config

4.make  && make install



sudo apt-get install libcurl4-openssl-dev pkg-config.


apt-get install libssl-dev libsslcommon2-dev


--with-openssl



vi /etc/php.ini

extension = "openssl.so"


你可能感兴趣的:(php 编译openssl)