eAccelerator是一个的免费、开源的PHP模块,它能够为提供PHP加速、优化、加码、和动态内容缓存功能。它通过存储PH脚本编译后的状态而加快执行PHP脚本的速度,而不需要频繁的编译这个PHP脚本。而且它能优化PHP脚本,以提高执行PHP的速度。eAccelerator特色是减少了服务器负载、使PHP脚本加速1-10倍。
you can download the eAccelerator binaries for your version of PHP 5.2.5
//对应你的php版本下载相应的dll文件.如果是PHP 5.2.5请下载eAccelerator 0952 for PHP 5.2.5 eLoader 0952 for PHP 5.2.5
Attachment Size
eAccelerator 095 Final for PHP 5.1.6 120 KB
095_final_useful _files.zip 41.97 KB
eAccelerator 0.9.5 Final for PHP 5.1.5 120 KB
eAccelerator 095 Final for PHP 5.1.6 Optimized for Size 108 KB
eAccelerator 095 Final for PHP 5.2.0 120 KB
eAccelerator 095 Final for PHP 5.0.5 120 KB
eAccelerator 095 for PHP 5.0.4 (OLDER PHP VERSION) 120 KB
eAccelerator 0951 for PHP 5.2.2 120 KB
eAccelerator 0951 for PHP 5.2.1 120 KB
eAccelerator 0951 for PHP 5.2.2 Built with VC2005 SP1 128 KB
eAccelerator 0951 for PHP 5.1.4 120 KB
eAccelerator 0951 for PHP 5.2.3 120 KB
eAccelerator 0951 for PHP 5.2.0 (OLDER PHP VERSION) 120 KB
eAccelerator 0951 for PHP 5.2.4 120 KB
eLoader 0951 for PHP 5.2.4 28 KB
0952_final_useful _files.zip 42.27 KB
eLoader 0952 for PHP 5.2.3 28 KB
eAccelerator 0952 for PHP 5.2.3 120 KB
eLoader0952_5.2.4.dll 28 KB
eAccelerator 0952 for PHP 5.2.4 120 KB
eAccelerator 0952 for PHP 5.2.5 120 KB
eLoader 0952 for PHP 5.2.5 28 KB
We have been using this PHP accelerator (0.9.5), on multiple servers, for a long time. It's used on some high traffic sites without any problem.
Install:
a) Download a copy of eAccelerator that is compatible with your version of PHP.
This can be an issue with eAccelerator. Sometimes it can take a little time before the Windows binaries are available for the most recent version of PHP.
b) Copy a compatible eaccelerator.dll to your PHP extensions folder (like: c:\php\extensions replace with your actual folder location).
Make sure the configuration directive extension_dir in your php.ini is properly pointing to your extensions folder.
Like: extension_dir = "c:/php/extensions"
//将dll文件复制到c:/php/ext下.
c) Create a folder (with the appropriate permissions) for the temporary cached files.
For example: D:\tmp\eaccelerator
//创建tmp目录 权限可写
d) Add the following to your php.ini (as the first loaded extension):
.
.
.
;extension=php_yaz.dll
;extension=php_zip.dll
//编辑php.ini 在extension=php_zip.dll之后添以红字部分
[eaccelerator]
zend_extension_ts="C:\php\ext\eAccelerator0952_5.2.4.dll"
zend_extension="C:\php\ext\eAccelerator0952_5.2.4.dll"
eaccelerator.cache_dir = "D:\tmp\eaccelerator"
eaccelerator.shm_size="64"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.debug ="0"
eaccelerator.check_mtime="1"
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"
eaccelerator.keys= "shm"
eaccelerator.sessions="shm"
eaccelerator.c
zend_extension="C:\php\ext\eLoader0952_5.2.4.dll"
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
.
.
.
e) Restart your Web Server.You can see..D:\tmp\eaccelerator have folders
//重启iis 你会看到tmp目录下有相应的文件出现
C:\tmp\eaccelerator
0
1
2
3
4
5
6
7
8
9
a
b
c
d
e
f
f)testing eAccelerator
测试 eAccelerator
C:\Documents and Settings\Administrator>php -v
PHP 5.2.5 (cli) (built: Nov 8 2007 23:18:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
And You can see phpinfo.
你也可以通过phpinfo.php查看是否成功
没有评论:
发表评论