PHP dynamic module increases

To install the module, for example openssl

Note: Configuration of PHP module openssl openssl need to give priority to configure the system function

Extract the PHP source file, go to the next source file EXT / OpenSSL directory
 / usr / local / php / bin / phpize 
Note: This step will generate the configure file, you may be prompted config.m4 missing files when executed, will config0.m4 in the current directory can be copied to the current directory: CP config0.m4 config.m4 . / Configure-OpenSSL --with = / usr / local / OpenSSL / PHP---with-config = / usr / local / PHP / bin / PHP- config make && make install

This step will generate a specific openssl.so module, refer to the specific storage location coding information; openssl.so generated PHP extension module to copy the directory, the directory extension PHP particular reference profile, add PHP.ini module support profile, If the apache service restart apache, nginx is if you need to restart php-fpm

appendix:

Download autoconf: the FTP : // ftp.gnu.org/gnu/autoconf 
M4 Download: the FTP : // ftp.gnu.org/gnu/m4/

Guess you like

Origin www.cnblogs.com/2019PawN/p/12164559.html