eAccelerator 0.951 for PHP 5.2.2 配置方法
配置方法:
参照下面代码,在所有扩展之前加载 eAccelerator
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
extension=eAccelerator0951_5.2.2.dll
extension=php_bz2.dll
;extension=php_curl.dll
eaccelerator.shm_size="64"
eaccelerator.cache_dir="..\eaccelerator.cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
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.content = "shm"
eaccelerator.admin.name="admin"
eaccelerator.admin.password="password"
eaccelerator.allowed_admin_path = "..\htdocs\control.php"
[Zend]
zend_extension_manager.optimizer_ts="..\ZendOptimizer"
zend_extension_ts="..\..\ZendOptimizer\ZendExtensionManager.dll"
注意,确保 eaccelerator.cache_dir="..\eaccelerator.cache" 里面指向的目录存在并可读写。
我这里使用了相对路径。因为我那个绿色套件就是使用相对路径的。
其他参数可以保持默认。
参照下面代码,在所有扩展之前加载 eAccelerator
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
extension=eAccelerator0951_5.2.2.dll
extension=php_bz2.dll
;extension=php_curl.dll
eaccelerator.shm_size="64"
eaccelerator.cache_dir="..\eaccelerator.cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
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.content = "shm"
eaccelerator.admin.name="admin"
eaccelerator.admin.password="password"
eaccelerator.allowed_admin_path = "..\htdocs\control.php"
[Zend]
zend_extension_manager.optimizer_ts="..\ZendOptimizer"
zend_extension_ts="..\..\ZendOptimizer\ZendExtensionManager.dll"
注意,确保 eaccelerator.cache_dir="..\eaccelerator.cache" 里面指向的目录存在并可读写。
我这里使用了相对路径。因为我那个绿色套件就是使用相对路径的。
其他参数可以保持默认。
顶(0)
踩(0)
上一篇:PHP安装攻略:安装并配置PHP
下一篇:Apache FAQ帮助集锦
- 最新评论