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
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!