When installing (fastcgi mode), there is often a command:/usr/local/webserver/php/bin/phpize
what is Phpize?
What is Phpize? PHP Official instructions:
http://php.net/manual/en/install.pecl.phpize.php
Phpize is used to extend the PHP extension module, through Phpize can build PHP plug-in module
For example, you want to be in the original compiled PHP to add memcached or ImageMagick extension modules, you can use Phpize, through the following steps to work.
Two, how to use Phpize?
When PHP is compiled, the PHP 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 Memcache extensions in PHP: All we have to do is follow these steps
————————————————————————
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
make install
————————————————————————
Note ./configure can be specified after the path of the Php-config file
so that the compilation is complete, but also to add the extension value in the php.ini file
Extension = " memcache.so
---------------------------------------------------------
Note: Cannot find CONFIG.M4.
This error is a silly mistake, after decompression need CD to folder, or Phpize will be the error
Dynamically compiling the memcache extension library for PHP,/usr/localphp/bin/phpize error occurred while performing the cannot,
find autoconf. Please check your autoconf installation and the $PHP _autoconf environment variable are set correctly and then rerun this SC Ript. The
is obviously missing files and needs to be installed. Find the information on the Internet.
# 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 && 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/
#./configure && 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