PHP installation extensions for Linux (Personal work Note series PHP)

Source: Internet
Author: User
Tags mcrypt taint zts

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.