One, the benefits of Phpize
When are we going to use phpize? When we install PHP:
'./configure '--prefix=/usr/local/php '--with-mysql=/usr/local/mysql '--with-zlib-dir '--with-freetype-dir=/ usr '--with-jpeg-dir=/usr '--with-png-dir=/usr '--enable-gd-native-ttf '--with-gd '--enable-ftp '--with-iconv ' '--with-gettext '--with-curl '--enable-fastcgi '--with-openssl '
The parameters behind the root are the modules we want, but as we work, we need to add some modules and we don't want to recompile PHP, so we can use phpize.
Second, install the PHP module
Let me take the soap installation as an example
Cd/home/tmp/php-5.2.6/ext/soap #ext目录下面放的是php的模块库
/usr/local/php/bin/phpize
#确定php-config file is not in, call Php-config, after installation. So file is automatically put into Extension_dir
./configure--enable-soap--with-php-config=/usr/local/php/bin/php-config
Make && make install
After the installation, there will be something like this.
See all operating system documentation about GKFX libraries for
More information, such as the LD (1) and ld.so (8) manual pages.
----------------------------------------------------------------------
Build complete.
Don ' t forget to run ' make test '.
Installing shared extensions:usr/local/php/lib/php/extensions/no-debug-non-zts-20140613/
Third, view. So files, and modify PHP.ini
cd/usr/local/php/lib/php/extensions/no-debug-non-zts-20140613/
Ls-al |grep Soap
-rwxr-xr-x 1 root root 763334 Feb 9 10:51 soap.so
Vi/etc/php.ini
Extension_dir= "usr/local/php/lib/php/extensions/no-debug-non-zts-20140613/"
Extension=soap.so
Four, re-starting Apache or phpcgi or other
Phpize Adding PHP Modules