PHP头条
热点:

windows中PHP 5.2.17 安装 eAccelerator方法


eAccelerator是一个开源php加速器,优化和动态内容缓存,提高了php脚本的缓存性能,使得PHP脚本在编译的状态下,对服务器的开销几乎完全消除,下面我来给各位同学介绍PHP 5.2.17 安装 eAccelerator方法

本包里有非线程安全与线程安全版本。eAccelerator_ts.dll 是线程安全版本,eAccelerator_nts.dll 是非线程安全版本。该eAccelerator使用最新发布的PHP 5.2.17编译,使用前请确认自己的PHP版本。文件内含Thread safe(线程安全)和Non Thread Safe(非线程安全版本),请根据自己使用的PHP版本选择。

一、相关下载

eAccelerator 0.9.6.1 For PHP5.2.17(DLL)

二、安装方法


1、选择相应版本


根据您的PHP线程安全版本,选择相应文件,并复制到php目录下的子目录ext中,同时改名为php_eaccelerator.dll。

2、设置相应参数


[eaccelerator]
zend_extension_ts="d:/php5/ext/php_eaccelerator.dll"
eaccelerator.shm_size="64"
eaccelerator.cache_dir="d:/php5/tmp"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
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.content = "shm"

请编辑C:windowsphp.ini文件(根据实际情况),复制以上参数到php.ini最底部,并修改以下路径。

zend_extension_ts="d:/php5/ext/php_eaccelerator.dll"  #您的PHP路径
eaccelerator.cache_dir="d:/php5/tmp"         #您的PHP临时文件路径(要有user可读写权限)

 

3、保存,重启IIS


在CMD中执行:IISRESET,重启IIS,并使用phpinfo查看,如果提示如下图,表示安装成功。

www.phpzy.comtrue/php/5744.htmlTechArticlewindows中PHP 5.2.17 安装 eAccelerator方法 eAccelerator是一个开源php加速器,优化和动态内容缓存,提高了php脚本的缓存性能,使得PHP脚本在编译的状态下,对服务器的开销几乎完全消除,下面我...

相关文章

    暂无相关文章
相关频道:

PHP之友评论

今天推荐