Centos6.5-centos 6.5 System PHP Environment of the SSL version of the Curl Library default to NSS, how to become more OpenSSL?
Source: Internet
Author: User
Keywordscurlcentos6.5opensslphp
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
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.