php加速器eAccelerator安装
1)编译参数
- ./configure \
- –-enable-eaccelerator \
- -–with-php-config=/usr/local/php/bin/php-config
2)修改php,ini,添加以下内容到php.ini中
- zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so"
- eaccelerator.shm_size="16"
- eaccelerator.cache_dir="/tmp/eaccelerator"
- eaccelerator.enable="1"
- eaccelerator.optimizer="1"
- eaccelerator.check_mtime="1"
- eaccelerator.debug="0"
- eaccelerator.log_file = "/var/log/eaccelerator_log"
- eaccelerator.filter=""
- eaccelerator.shm_max="0"
- eaccelerator.shm_ttl="0"
- eaccelerator.shm_prune_period="0"
- eaccelerator.shm_only="0"
- eaccelerator.compress="1"
- eaccelerator.compress_level="9"
3)创建目录
- mkdir /tmp/eaccelerator
- chmod 777 tmp/eaccelerator
4) 验证安装
- [root@test ~]# php -v
- PHP 5.3.2 (cli) (built: Feb 28 2011 02:49:48)
- Copyright (c) 1997-2010 The PHP Group
- Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
- with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
- [Zend Modules]
- eAccelerator