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