Linux install OpenSSL module under PHP

Source: Internet
Author: User
Tags install openssl openssl

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.