Zend Guard Loader的配置与安装

PHP 5.3 下,Zend Optimizer 已经被全新的 Zend Guard Loader 取代

------------------------------------------------ php

1. 下载 Zend Guard Loader 压缩包。(官方下载地址:http://www.zend.com/en/products/guard/downloads) 安全

2. 解压并提取 ZendGuardLoader.so(Linux)或 ZendLoader.dll(Windows),对应你的PHP版本。 服务器

3. 在你的 php.ini 文件添加下面一行,用来加载 Zend Guard Loader: 性能

Linux 和 Mac OS X: zend_extension = 完整路径/ZendGuardLoader.so
Windows(非线程安全): zend_extension = 完整路径/ZendLoader.dll spa

4. 在 php.ini 额外新增一行,启用 Zend Guard Loader: 线程

 zend_loader.enable = 1 debug

5. 可选:能够在 php.ini 文件添加如下行到 Zend Guard Loader 配置位置: orm

;禁用许可证检查(为了性能的缘由)
zend_loader.disable_licensing = 0 文档

;让 Zend Guard Loader 支持混淆级别。级别在 Zend Guard 的官方详细文档。 0 - 不启用混淆
zend_loader.obfuscation_level_support = 3 产品

;从这个路径寻找Zend产品受权的产品许可证。欲了解更多有关如何建立一个许可证文件的信息,请参阅 Zend Guard 用户指南.
zend_loader.license_path =

6. 若是您使用 Zend debugger,请确保加载 Zend guard Loader。

7. 若是您使用 ioncube loader,请务必在它以前加载 Zend guard Loader。

8. 从新启动Web服务器。

总结一下,在php.ini中加的语句以下:
【Linux 和 Mac OS X环境下】
zend_extension="/usr/lib/php/modules/ZendGuardLoader.so"  (替换成本身的ZendGuardLoader.so路径)
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
 

【Windows环境下】 zend_extension="c:/php/ZendLoader.dll"  (替换成本身的ZendGuardLoader.so路径) zend_loader.enable=1 zend_loader.disable_licensing=0 zend_loader.obfuscation_level_support=3

相关文章
相关标签/搜索