Zend Optimizer/3.3.3 解密加代码优化,提高PHP应用程序的执行速度,显著降低服务器的CPU负载。
Zend Guard Loader/5.5.0/6.0 解密加代码优化,提高PHP应用程序的执行速度,显著降低服务器的CPU负载。 [Zend.loader] zend_loader.disable_licensing=1 zend_loader.license_path= 保存php.ini配置文件,重启apache或者IIS linux环境下:
[zend]
zend_extension=/php/lib/php/extensions/ZendGuardLoader.so
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support= 3
zend_loader.license_path=
在你指定的www目录下新建一个phpinfo()文件.输入 echo phpinfo();
?>
如果探针显示Zend Guard Loader 表明Zend Guard 已经配置成功;
另附:php5.3不支持Zend Optimizer的解决办法(Zend Guard Loader) PHP 5.3 下,Zend Optimizer 已经被全新的 Zend Guard Loader 取代 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 4. 在 php.ini 额外新增一行,启用 Zend Guard Loader: zend_loader.enable = 1
5. 可选:可以在 php.ini 文件添加以下行到 Zend Guard Loader 配置位置: ;禁用许可证检查(为了性能的原因)
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服务器。 |