conv,例如:
EXTRA_LIBS = ….. -lcrypt -liconv
然后重新再次 make 即可,不用make clean 直接make)
make install
cp php.ini-dist /usr/local/web_server/php5/etc/php.ini
5、编译安装PHP5扩展模块 (参考:http://willko.javaeye.com/blog/332993)
安装memcached (memcached: http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz )
tar zxvf memcached-1.4.5.tar.gz
cd memcached-1.4.5
./configure --prefix=/usr/local/web_server/memcached --enable-threads --enable-64bit --with-libevent=/usr/local/web_server/libevent/
make && make install
php安装对memcached的支持
php有两个版本的memcached客户端
1.memcached
这个是新版的客户端基于libmemcached,要安装libmemcached
先安装libmemcached
下载地址:http://download.tangent.org/libmemcached-0.44.tar.gz
tar zxvf libmemcached-0.44.tar.gz
cd libmemcached-0.44
./configure --prefix=/usr/local/web_server/libmemcached/ --with-memcached --with-libevent-prefix=/usr/local/web_server/libevent/
make && make install
安装php memcached客户端
下载地址:http://pecl.php.net/get/memcached
tar zxvf memcached-0.1.4.tgz
cd memcached-0.1.4
/usr/local/web_server/php5/bin/phpize
./configure --prefix=/usr/local/web_server --with-php-config=/usr/local/web_server/php5/bin/php-config --with-libmemcached-dir=/usr/local/web_server/libmemcached/ --enable-memcached
make && make instal
2.memcache
下载地址:http://pecl.php.net/get/memcache
tar zxvf memcache-2.2.5.tgz
cd memcache-2.2.5
/usr/local/web_server/php5/bin/phpize
./configure --prefix=/usr/local/web_server --with-php-config=/usr/local/web_server/php5/bin/php-config --enable-memcache
make && make instal
tar jxvf eaccelerator-0.9.6.1.tar.bz2
cd eaccelerator-0.9.6.1/
/usr/local/web_server/php5/bin/phpize
./configure --prefix=/usr/local/web_server/ --enable-eaccelerator=shared --with-php-config=/usr/local/web_server/php5/bin/php-config
make
make install
按shift g键跳到配置文件(php.ini)的最末尾,加上以下配置信息:
引用
[eaccelerator]
zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"
eaccelerator.shm_size="64"
eaccelerator.cache_dir="/usr/local/eaccelerator_cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2/
/usr/local/web_server/php5/bin/phpize
./configure --prefix=/usr/local/web_server/ --with-php-config=/usr/local/web_server/php5/bin/php-config --with-pdo-mysql=/usr/local/web_server/mysql
make
make install
tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_M |