Linux install OpenSSL module under PHP
1, find the previous PHP installation package, enter PHP-5.4.23/EXT/OPENSLL
2, #/php/bin/phpize
3, #./configure--with-openssl--with-php-config=/usr/local/php/bin/php-config
#make
#make Install
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/86/DA/wKiom1fNLu_yiVqHAAAPJCPb9Wc925.png-wh_500x0-wm_3 -wmp_4-s_2911331026.png "title=" Qq20160905163531.png "alt=" Wkiom1fnlu_yivqhaaapjcpb9wc925.png-wh_50 "/>
4, find php.ini file for editing, add openssl.so file;
#vim php.ini
Extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/openssl.so
:
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/86/DA/wKiom1fNL1vQ23trAAANeKyjS6Q993.png-wh_500x0-wm_3 -wmp_4-s_773241045.png "title=" Qq20160905163948.png "alt=" Wkiom1fnl1vq23traaanekyjs6q993.png-wh_50 "/>
5, restart the PHP-PFM process;
#/usr/local/php/sbin/php-fpm
6. Error resolution during installation
1) There is no config.m4 found, the EXT/OPENSLL directory under the CONFIG0.M4 modified to CONFIG.M4 can;
#mv CONFIG0.M4 CONFIG.M4
2) appears configure:error:Cannot find OpenSSL ' s <evp.h> error prompt, use the following command to install;
#yum Install OpenSSL Openssl-devel
PHP Log when this error occurs unable to find the wrapper "https"-do you forget to enable it whenever you co, please follow the above method to install, you can solve the problem;
This article is from the "Grow Together" blog, please be sure to keep this source http://1243047.blog.51cto.com/1233047/1846466
Linux install OpenSSL module under PHP