PHP's environment is now required to support TSL1.2 and sha-256,php's Curl Library upgrade to Curl 7.35.0,openssl upgrade to openssl/1.0.1f, but viewing the SSL version of Curl through a funding file is NSS, If modified to OpenSSL?
How to change to OpenSSL in SSL version
Why is the SSL Version of the CentOS 6.5 php curl The nss/3.19.1 instead of the openssl/1.0.1f changed?
Reply content:
PHP's environment is now required to support TSL1.2 and sha-256,php's Curl Library upgrade to Curl 7.35.0,openssl upgrade to openssl/1.0.1f, but viewing the SSL version of Curl through a funding file is NSS, If modified to OpenSSL?
How to change to OpenSSL in SSL version
Why is the SSL Version of the CentOS 6.5 php curl The nss/3.19.1 instead of the openssl/1.0.1f changed?
For your problem, in my development environment to practice the success of the once, the next step:
First, yum update, updating OpenSSL to the latest version
Then confirm that the SSL version of Curl is not openssl,centos default installation is NSS
If the detection is not as OpenSSL, download curl recompile
wget https://curl.haxx.se/download/archeology/curl-7.19.7.tar.gztar xvzf curl-7.19.7.tar.gzcd curl-7.19.7./configure --prefix=/usr/local/curl/ --without-nss --with-sslsudo make && sudo make install
Back up the default curl binaries
sudo mv/usr/bin/curl/usr/bin/curl.bak
Then make a new curl soft chain
sudo ln-s/usr/local/curl/bin/curl/usr/bin/curl
Then Curl--version confirm that it is already a version of OpenSSL
Download the corresponding version of the PHP source package, recompile the installation of PHP's Curl extension
wget http://cn2.php.net/get/php-5.6.21.tar.gz
Tar xvzf php-5.6.21.tar.gz
CD Phpphp-5.6.21/ext/curl
Phpize
./configure--with-curl=/usr/local/curl/--with-php-config=/usr/local/php/bin/php-config
sudo make && sudo make install
The curl.so will be generated in the/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/directory after the installation is complete
Note: If you have previously installed a curl extension, you must first remove the curl.so
Finally restart the next php-fpm, and then confirm the next Phpinfo