Phpize adds php module 1. what does phpize do? Phpize is used to expand the php Extension Module. can phpize be used to establish a php plug-in module? When should we use phpize? When installing php:. configure -- prefixusrlocalphp -- with-mysqlusrlocalmysql -- with-z phpize
I. What does phpize do?
Phpize is used to expand the php Extension Module. phpize can be used to establish a php plug-in module.
?
When should we use phpize?
When installing 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 following root parameters are the modules we need. However, as we need to add some modules and don't want to re-compile php, we can use phpize.
?
II. how to use phpize?
After php compilation is complete, the php bin directory contains the phpize script file. Run the following phpize command before compiling the extension module you want to add;
?
Install the php module
Below is an example of soap installation.
Cd/home/zhangy/php-5.2.6/ext/soap ??????????????? # The ext directory contains the php module library.
/Usr/local/php/bin/phpize
# Make sure that the php-config file is not in use. call php-config. after installation, The. so file will be automatically placed in extension_dir.
./Configure -- enable-soap? -- With-php-config =/usr/local/php/bin/php-config
Make & make install
This will happen after installation.
See any operating system documentation about shared libraries
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-20060613/
3. view the. so file and modify php. ini.
D/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/
Ls-al | grep soap
-Rwxr-xr-x 1 root? Root ?? 763334 Feb? 9 soap. so
Vi/usr/local/php/lib/php. ini
Add a line of extension = soap. so to the place where the module is loaded.
4. restart apache, phpcgi, or other