Detailed steps for installing OpenSSL, swoole, and other extensions under Linux _linux

Source: Internet
Author: User
Tags install php install openssl openssl

OpenSSL is an open source SSL technology, because I need to use PHP related features, need to get HTTPS files so I have to install this thing. below to introduce Linux under the installation of OpenSSL, swoole, such as the detailed steps of expansion, together to see!

Compiling the installation

First of all, to compile the installed PHP, if you need to install a new extension, here to install OpenSSL extension as an example to explain

1, find the PHP source directory, we have the source code located in/opt/download/php-5.5.30, if not found, to view the current version of PHP, through the wget http://cn2.php.net/distributions/ Php-5.5.30.tar.gz php-5.5.30 to a specific version to download again

2, switch to the source directory, find the corresponding expansion package Cd/opt/download/php-5.5.30/ext/openssl

3, find the directory where Phpize (can be found by Whereis), and then perform/usr/local/bin/phpize

4, some may be executed after the error, the hint can not find CONFIG.M4, the current directory config0.m4 is CONFIG.M4, directly directly renamed can (MV Config0.m4 config.m4)

5./configure--with-openssl--with-php-config=/usr/local/bin/php-config

6, made && make install, successful execution will generate a openssl.so file

7. Find in php.ini file: Extension_dir =, add extension=openssl.so in php.ini file

8, restart Apache, through php-m or phpinfo to see if the extension is installed successfully

Yum Installation

Installation extensions are much simpler with PHP installed by Yum

Yum Install Php-openssl

Install other extensions, such as Swoole extensions, you can do the same

The above is a small set to introduce the Linux installation OpenSSL, swoole, such as the detailed steps of the expansion, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.