重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
系统环境:CentOS release 6.2 (Final)
创新互联是一家专注于做网站、成都网站制作与策划设计,大同网站建设哪家好?创新互联做网站,专注于网站建设十载,网设计领域的专业建站公司;建站业务涵盖:大同等地区。大同做网站价格咨询:18982081108
软件版本:php-5.3.13
php安装的编译参数:
./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"