wdlinux 安装apc扩展

首先下载apc ,我下载的是3.0.9的,

ssh命令:

wget http://pecl.php.net/get/APC-3.0.9.tgz
tar xvzf APC-3.0.9.tgz
cd APC-3.0.9
/www/wdlinux/php/bin/phpize
./configure -enable-apc -enable-apc-mmap -with-php-config=/www/wdlinux/php/bin/php-config
make
make install

安装完成后,在/www/wdlinux/php/lib/php/extensions/no-debug-non-zts-20060613目录下多了一个apc.so文件,修改php.ini

ssh命令如下: vim /www/wdlinux/etc/php.ini

搜索: /zend_extension

[eaccelerator]
extension_dir=/www/wdlinux/php/lib/php/extensions/no-debug-non-zts-20060613
#APC新增 start
extension="apc.so"
enable =1
apc.cache_by_default=on
apc.shm_segments=1
apc.shm_size=32
apc.ttl=600
apc.user_ttl=600
apc.num_files_hint=0
apc.write_lock=On
#APC新增 end
extension="eaccelerator.so"
eaccelerator.shm_size="32"
eaccelerator.cache_dir="/www/wdlinux/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"
[Zend]
zend_extension_manager.optimizer=/www/wdlinux/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/www/wdlinux/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3
zend_extension=/www/wdlinux/Zend/lib/ZendExtensionManager.so
posted @ 2013-11-12 00:14  smismile  阅读(268)  评论(0编辑  收藏  举报