Linux environment does not compile PHP to increase the open SSL extension

Source: Internet
Author: User
Tags fpm install openssl

Today, a PHP colleague said that he would like to do not compile PHP under Linux and only the new OpenSSL extension module, I tried many times did not succeed, so I need to help install. It took me 20 minutes to install OpenSSL, so record the installation method:

Catalogue Description:

1. PHP Source Address:/usr/local/src/php5.3.27
2. Directory of PHP Installation:/usr/local/php

Installation Introduction:
1. Switch to the OpenSSL directory: Cd/usr/local/src/php5.3.27/ext/openssl

2. Copy the config0.m4 from the OpenSSL directory to a CONFIG.M4:CP config0.m4 config.m4

3. Execution:/usr/local/php/bin/phpize (note: At this time the directory is:/USR/LOCAL/SRC/PHP5.3.27/EXT/OPENSSL)

4. Execution:./configure–with-openssl–with-php-config=/usr/local/php/bin/php-config (Files such as configure are generated after the previous step)

5. Execute make

6. Execute make Install

7. Modify the php.ini. Vim/usr/local/php/etc/php.ini Add: extension=openssl.so (you don't need to add if you have one)

8. Restart PHP-FPM:/ETC/INIT.D/PHP-FPM restart

9. Re-view phpinfo (), search for OpenSSL

Linux environment does not compile PHP to increase the open SSL extension

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.