php模块安装

注:如果没有phpize,这样安装:#yuminstallphp-devel一、使用pecl安装#wgethttp://pear.php.net/go-pear.phar#phpgo-pear.pharphp模块和对应的服务的安装增加php模块:memcache:libmemcached-develimagick:ImageMagick-develgearman:libgearman-develsphinx:libsphinxclient-develredis:hiredis-devel1)使用pecl安装模块示例:【memcache】#yuminstalllibmemcached-devel#peclinstallmemcache【imagick】#yuminstallImageMagick-devel#peclinstallimagick【gearman】#yuminstalllibgearman-devel#peclinstallgearman【sphinx】#yuminstalllibsphinxclient-devel#peclinstallsphinx【redis】#yuminstallhiredis-devel#peclinstallredis二、编译安装示例:【memcached】#yuminstalllibmemcached-devel============php插件memcache#wgethttp://pecl.php.net/get/memcache-Omemcache-3.0.8.tar.gz#tarzxvfmemcache-3.0.8.tar.gz&&cdmemcache-3.0.8/#/usr/local/php/bin/phpize#./configure--enable-memcache--with-php-config=/usr/local/php/bin/php-config#make&&makeinstall#cd..【ImageMagick】#yuminstallImageMagick-devel============php插件imagick#wgethttp://pecl.php.net/get/imagick-Oimagick.tar.gz#tarzxvfimagick.tar.gz&&cdimagick-3.3.0RC1/#/usr/local/php/bin/phpize#./configure--with-php-config=/usr/local/php/bin/php-config#make&&makeinstall#cd..【gearmand】安装gearmand#yum-yinstalllibgearman-devel============php插件gearman#wgethttp://pecl.php.net/get/gearman-1.1.2.tgz#tarzxvfgearman-1.1.2.tgz&&cdgearman-1.1.2#/usr/local/php/bin/phpize#./configure--with-php-config=/usr/local/php/bin/php-config#make&&makeinstall#cd..