2013-05-31 14:10:30/分类: 技术/标签: php/eAccelerator/ 0
曾经php还是5.2.17版本的时候,我的服务器装载有eAccelerator加速器,但自从升级到5.3+之后,突然发现eAccelerator竟然不支持高版本PHP,无奈,只能暂时搁置这个神器。这两天在GITHUB上神游的时候发现eAccelerator已经支持到PHP5.4+版本了,马上着手进行安装,以下为过程记录及安装shell。
下载:
wget --no-check-certificate https://codeload.github.com/eaccelerator/eaccelerator/legacy.tar.gz/master
重命名下来来的master:
mv master eaccelerator.tar.gz
解压缩:```tar zvxf eaccelerator.tar.gz cd eaccelerator-eaccelerator-42067ac```
加载phpize:
/usr/local/php/bin/phpize
配置:
./configure --enable-eaccelerator=shared --with-php-config=/usr/local/php/bin/php-config
执行安装:
make && make install
完成,然后在php.ini中加入:
extension = "eaccelerator.so"
; Local Variables:
; tab-width: 4
; End:
;eaccelerator
eaccelerator.shm_size = "1"
eaccelerator.cache_dir = "/tmp/eaccelerator"
eaccelerator.enable = "1"
eaccelerator.optimizer = "0"
eaccelerator.debug = "0"
eaccelerator.name_space = ""
eaccelerator.check_mtime = "1"
eaccelerator.filter = ""
eaccelerator.shm_max = "0"
eaccelerator.shm_ttl = "3600"
eaccelerator.shm_prune_period = "3600"
eaccelerator.shm_only = "0"
eaccelerator.compress = "0"
eaccelerator.compress_level = "9"
发布于:http://www.hiceon.com/topic/eaccelerator-supports-php-5.4