Directadmin Zend Guard Loader 显示问题

|Font Size: | No Comments | Previous

  Directadmin 安装完以后,使用雅黑探针检测发现 ZendGuardLoader[启用] 后面显示的是x,在phpinfo页面却可以看到ZendGuardLoader信息:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
    with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies

  下面是修改方法:

  编辑php.ini配置文件,找到最后一行

zend_extension=/usr/local/lib/ZendGuardLoader.so

  将其修改为:

[Zend Optimizer]
zend_extension=/usr/local/lib/ZendGuardLoader.so
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=

  然后重启Apache即可。具体方法请参考相关README文档。

  下载页面:Zend Guard Downloads

1. Extract the Zend Loader package.
2. Locate and extract the ZendGuardLoader.so (Linux) or ZendLoader.dll (Windows) that corresponds to your php version.
3. Add the following line to your php.ini file for loading the ZendGuardLoader:
  (在php.ini文件中添加指令,这里要写完整路径,否则可能无法加载)
   Linux and Mac OS X:      zend_extension=<full_path_to_ZendGuardLoader.so>
   Windows non-thread safe: zend_extension=<full_path_to_ZendLoader.dll>
4. Add an aditional line to your php.ini for enabling ZendGuardLoader
  该选项默认是启用的。
  ; Enables loading encoded scripts. The default value is On
  zend_loader.enable=1
5. Optional: following lines can be added your php.ini file for ZendGuardLoader configuration:
  可选设置项。
   ; Disable license checks (for performance reasons)
     zend_loader.disable_licensing=0
   ; The Obfuscation level supported by Zend Guard Loader. The levels are detailed in the official Zend Guard Documentation. 0 - no obfuscation is enabled
     zend_loader.obfuscation_level_support=3
   ; Path to where licensed Zend products should look for the product license. For more information on how to create a license file, see the Zend Guard User Guide
     zend_loader.license_path=
6. If you use Zend debugger as well, please make sure to load it after the Zend guard Loader
7. If you use ioncube loader, please make sure to load it before Zend guard Loader
8. Restart your Web server.

本文结束。

Leave a comment