eAccelerator加速器支持PHP版本到5.4(附shell)

eAccelerator加速器支持PHP版本到5.4(附shell)http://www.hiceon.com/topic/eaccelerator-supports-php-5.4/

2013-05-31 14:10:30/分类: 技术/标签: php/eAccelerator/ 0

曾经php还是5.2.17版本的时候,我的服务器装载有eAccelerator加速器,但自从升级到5.3+之后,突然发现eAccelerator竟然不支持高版本PHP,无奈,只能暂时搁置这个神器。这两天在GITHUB上神游的时候发现eAccelerator已经支持到PHP5.4+版本了,马上着手进行安装,以下为过程记录及安装shell。

  1. 下载:wget --no-check-certificate https://codeload.github.com/eaccelerator/eaccelerator/legacy.tar.gz/master

  2. 重命名下来来的master:mv master eaccelerator.tar.gz

  3. 解压缩:```tar zvxf eaccelerator.tar.gz cd eaccelerator-eaccelerator-42067ac```

  4. 加载phpize: /usr/local/php/bin/phpize

  5. 配置:./configure --enable-eaccelerator=shared --with-php-config=/usr/local/php/bin/php-config

  6. 执行安装:make && make install

完成,然后在php.ini中加入:

 
 
  1. extension = "eaccelerator.so"

  2. ; Local Variables:

  3. ; tab-width: 4

  4. ; End:

  5. ;eaccelerator

  6. eaccelerator.shm_size = "1"

  7. eaccelerator.cache_dir = "/tmp/eaccelerator"

  8. eaccelerator.enable = "1"

  9. eaccelerator.optimizer = "0"

  10. eaccelerator.debug = "0"

  11. eaccelerator.name_space = ""

  12. eaccelerator.check_mtime = "1"

  13. eaccelerator.filter = ""

  14. eaccelerator.shm_max = "0"

  15. eaccelerator.shm_ttl = "3600"

  16. eaccelerator.shm_prune_period = "3600"

  17. eaccelerator.shm_only = "0"

  18. eaccelerator.compress = "0"

  19. eaccelerator.compress_level = "9"

发布于:http://www.hiceon.com/topic/eaccelerator-supports-php-5.4

你可能感兴趣的:(技术,服务器,标签,master,加速器)