/USR/LOCAL/PHP/BIN/PHP-M viewing installed modules (static + dynamic)
If you find that PHP lacks a functional module, there are 2 workarounds:
1. Recompile the source code and add the function module.
2. compile the function module separately and load dynamically in the configuration .
Example: PHP needs to add a module curl
1) Enter the module directory of the source package Cd/usr/local/src/php-5.4.36/ext
2) Enter the module catalogue Cd/usr/local/src/php-5.4.36/ext/curl
3)/usr/local/php/bin/phpize purpose is to generate the Configure file in the current directory
4)./configure--with-php-config=/usr/local/php/bin/php-config--After the fixed wording
5) Make
6) make install completed, will prompt to generate the path of the module/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/ Extensions default is the extension module storage path, you can customize the path in php.ini Extensions_dir generally keep the default
7) Add code to php.ini extension=curl.so load dynamic module configuration
If the module name is incorrectly written,/usr/local/php/bin/php-m |grep Curl cannot find this module. In the error log, you can view the errors, locate the fault Cat/usr/local/php/logs/php_errors.log
How to install the 2.9-php extension module