系統(tǒng)環(huán)境:CentOS release 6.2 (Final)
創(chuàng)新互聯(lián)是一家專注于做網(wǎng)站、成都網(wǎng)站制作與策劃設(shè)計,大同網(wǎng)站建設(shè)哪家好?創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)十載,網(wǎng)設(shè)計領(lǐng)域的專業(yè)建站公司;建站業(yè)務涵蓋:大同等地區(qū)。大同做網(wǎng)站價格咨詢:18982081108
軟件版本:php-5.3.13
php安裝的編譯參數(shù):
./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. 擴展組件memcached
下載memcached-2.2.0.tgz到本地,解壓
tar -xf memcached-2.2.0.tgz cd memcached-2.2.0 /usr/local/php5/bin/phpize ./configure --with-php-config=/usr/local/php5/bin/php-config make && make install mv /usr/local/php5/lib/php/extensions/no-debug-zts-20090626/memcached.so /usr/local/php5/ext/ 編輯php.ini添加extension = "memcached.so"
2. 擴展組件taint-1.0.0.tgz
下載taint-1.0.0.tgz到本地,解壓 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-config make && make install mv /usr/local/php5/lib/php/extensions/no-debug-zts-20090626/taint.so /usr/local/php5/ext/ 編輯php.ini添加extension = "taint.so"
3. 擴展組件mcrypt
進入到php源碼包的擴展模塊mcrypt源碼路徑下 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 install mv /usr/local/php5/lib/php/extensions/no-debug-zts-20090626/mcrypt.so /usr/local/php5/ext/ 編輯php.ini添加extension = "mcrypt.so"
4. 擴展組件mbstring
進入到php源碼包的擴展模塊mbstring源碼路徑下 cd /usr/local/src/php-5.3.13/ext/mbstring/ /usr/local/php5/bin/phpize ./configure --with-php-config=/usr/local/php5/bin/php-config make && make install mv /usr/local/php5/lib/php/extensions/no-debug-zts-20090626/mbstring.so /usr/local/php5/ext/ 編輯php.ini添加extension = "mbstring.so"