安装PHP XCache缓存加速模块
生产环境:OS:CentOS release 6.9 (Final)
PHP 5.3.27
任务:安装PHP XCache缓存加速模块
#
wget http://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.bz2
# tar xf xcache-3.2.0.tar.bz2
# ll
drwxrwxr-x 17 1027513 4096 9月19 2014 xcache-3.2.0
-rw-r--r--1 root root 148392 9月19 2014 xcache-3.2.0.tar.bz2
# cdxcache-3.2.0
# ll
# ./configure \
--enable-xcache \
--with-php-config=/usr/local/php/bin/php-config
-bash: ./configure: 没有那个文件或目录
# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
# ./configure --enable-xcache --with-php-config=/usr/local/php/bin/php-config
#make
# make install
Installing shared extensions: /usr/local/php-5.3.27/lib/php/extensions/no-debug-non-zts-20090626/
#
ls-l /usr/local/php-5.3.27/lib/php/extensions/no-debug-non-zts-20090626/
总用量 640
-rwxr-xr-x 1 root root 654932 4月16 10:47 xcache.sol
说明:
成功安装PHP XCache缓存加速模块,必须使用phpize来扩展PHP扩展模块,建立PHP的外挂模块。
# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
页:
[1]