System environment: CentOS Release 6.2 (Final)
Software version: php-5.3.13
Compilation Parameters for PHP installation:
./configure --prefix=/usr/local/php5 --with-config-file-path=/ Usr/local/php5/etc --with-mysql=/usr/local/mysql-5.5.23/ --with-mysqli=mysqlnd --with-pdo-mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-iconv-dir --with-gd --with-jpeg-dir --with-png-dir --with-zlib --with-freetype-dir --with-pcre-dir=/usr/local/pcre-8.30 -- with-bz2 --with-openssl --with-curl --with-curlwrappers --with-libxml-dir=/usr -- with-mhash --with-xmlrpc --with-mcrypt --enable-pcntl --enable-sockets -- Enable-gd-native-ttf --enable-mbregex --enable-sysvsem --enable-shmop --enable-bcmath --enable-safe-mode --enable-pdo --enable-xml --enable-soap -- enable-inline-optimization --enable-zip --enable-mbstring --disable-rpath -- Enable-maintainer-zts \
:
1. Extension Components memcached
Download memcached-2.2.0.tgz to local, unzip
TAR-XF memcached-2.2.0.tgzcd memcached-2.2.0/usr/local/php5/bin/phpize./configure--with-php-config=/usr/local/ Php5/bin/php-configmake && make installmv/usr/local/php5/lib/php/extensions/no-debug-zts-20090626/ memcached.so/usr/local/php5/ext/edit php.ini Add extension = "memcached.so"
2. Extension Components taint-1.0.0.tgz
Download taint-1.0.0.tgz to local, unzip TAR-XF taint-1.0.0.tgz CD taint-1.0.0/usr/local/php5/bin/phpize./configure-- With-php-config=/usr/local/php5/bin/php-configmake && make installmv/usr/local/php5/lib/php/extensions/ no-debug-zts-20090626/taint.so/usr/local/php5/ext/edit php.ini Add extension = "taint.so"
3. Extension Components MCrypt
Into the PHP source package Extension Module MCrypt source path under the Cd/usr/local/src/php-5.3.13/ext/mcrypt//usr/local/php5/bin/phpize./configure-- With-php-config=/usr/local/php5/bin/php-config make && make installmv/usr/local/php5/lib/php/extensions/ no-debug-zts-20090626/mcrypt.so/usr/local/php5/ext/edit php.ini Add extension = "mcrypt.so"
4. Extension Components mbstring
Into the PHP source package Extension Module mbstring source path under the Cd/usr/local/src/php-5.3.13/ext/mbstring//usr/local/php5/bin/phpize./configure-- With-php-config=/usr/local/php5/bin/php-configmake && make installmv/usr/local/php5/lib/php/extensions/ no-debug-zts-20090626/mbstring.so/usr/local/php5/ext/edit php.ini Add extension = "mbstring.so"
This article is from the "Tolerant Big" blog, please be sure to keep this source http://yumao.blog.51cto.com/9298275/1591364
PHP installation extensions for Linux (Personal work Note series PHP)