phpize is used to extend the PHP extension module, through the phpize can build PHP plug-in module, the following describes a method of his use, the need for friends can refer to the following
When installing (fastcgi mode), there is often such a command: code is as follows:/usr/local/webserver/php/bin/phpize First, what is Phpize? What is phpize? Phpize is used to extend the PHP expansion module, through the phpize can build PHP plug-in modules such as you want to be in the original compiled PHP to add memcached or ImageMagick extension modules, you can use the Phpize, through the following steps to work. Ii. How to use Phpize? When PHP is compiled, PHP's Bin directory will have phpize this script file. Before compiling the extension module you want to add, perform the following phpize: For example, now you want to include the memcache extension module in PHP. We're just going to do the following code as follows: Tar zxvf memcache-2.2.5.tgz CD MEMCACHE-2.2.5//usr/local/webserver/php/bin/phpize./configure–with-php-config=/usr/local/webserver/php/bin/ Php-config make made install note./configure can be specified after the path of the Php-config file so that the compilation is done, What you need to do is add the extension value code in the php.ini file as follows: Extension = "memcache.so" Note: Cannot find CONFIG.M4. This error is a very silly mistake, decompression needs CD to the folder, or Phpize will be an error dynamically compiled PHP memcache extension Library, in the implementation of/usr/localphp/bin/phpize errors, code as follows: cannot Find autoconf. Please check your autoconf installation and the $PHP _autoconf environment variable are set correctly and then rerun this SC Ript. is obviously missing files and needs to be installed. Code as follows: # WGet http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz # TAR-ZVXF m4-1.4.9.tar.gz # cd m4-1.4.9/#/configure && make &am p;& make install # CD. /# wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz # TAR-ZVXF autoconf-2.62.tar.gz # cd autoconf-2.62/#./con Figure && made && make install then perform the following command to install #/usr/local/php/bin/phpize #./configure–prefix=/usr/local/ Memcached–with-libevent=/usr/local/libevent–with-php-config=/usr/local/php/bin/php-config #make && Make Install