Add dynamic modules without re-compiling php (taking the mbstring module as an example) 1 enter the MB string directory in the php source code directory cd/usr/local/src/php-5.2.4/ext/mbstring/2 execute the bin/phpize file/usr/local directory after php installation does not re-compile php, add a dynamic module (taking the mbstring module as an example)
1. enter the MB string directory in the php source code directory.
Cd/usr/local/src/php-5.2.4/ext/mbstring/
2. execute the bin/phpize file in the directory after php installation.
/Usr/local/php/bin/phpize (this requires aotuconf? Unbutnu: sudo apt-get install aotuconf)
?
3 ?. /Configure -- with-php-config =/var/lib/php5/bin/php-config # write your own config file here.
?
4. make & make install (if an error is reported in the previous step, find the corresponding solution based on the error cause). after installation, the generated so file location will be prompted and copied to the php extension directory. for example, under $ HOME/usr/local/php5/ext. ini. if the so file cannot be loaded, it can be written as an absolute path.
?