In Linux, PHP has been compiled to add the so extension method. The key is phpize and config. m4. in LINUX, PHP has been compiled and how to add the so extension.
Sh:/usr/local/php5/bin/phpize
Principle: use phpize to find the corresponding extension folder in the compressed package and execute phpize in it. the specific steps are as follows:
PHP Installation Path:/usr/local/php5
PHP source code path:/home/default7/lamp/php-5.5.13
Extension hypothesis zlib:/home/default7/lamp/php-5.5.13/ext/zlib
Run the code:
Ln-s/usr/local/php5/bin/phpize/usr/bin/phpizmcm/home/default7/lamp/php-5.5.13/ext/zlibmv config0.m4 config. m4phpize // Here prompt error, install bz2, bz2-develyum install bz2 bz2-devel. /configure -- with-php-config =/usr/local/php5/bin/php-configmakemake testmake installvim/etc/php. ini ## add extension = bz2.so
(By default7 # zbphp.com)