Zend Guard User Guide > Introduction > Installing Zend Guard > Installing Zend Guard Loader

Installing Zend Guard Loader

The Zend Guard Loader is a PHP extension that runs PHP scripts encoded by Zend Guard. The Guard Loader extension must be installed on each Web server that runs files that were encoded with, or use, Zend Guard licenses. The Zend Guard Loader translates encoded files to a format that can be parsed by the Zend Engine. This runtime process uses the Zend engine as a trigger to start the Zend Guard Loader component.

Note:

This procedure pertains only to users attempting to run files that were encoded with Zend Guard, and who do not have Zend Guard installed on their machine.

 

 

Instructions on how to complete a procedure

To install the Zend Guard Loader:

  1. Download and extract the Zend Guard Loader (Runtime for PHP 5.3 or 5.4) package from Zend.com at: http://www.zend.com/en/products/guard/downloads
  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:
    • Linux and Mac OS X:

    zend_extension=<full_path_to_ZendGuardLoader.so>

    • Windows non-thread safe (TS is not supported):

    zend_extension=<full_path_to_ZendLoader.dll>

  4. Add an additional line to your 'php.ini' for enabling ZendGuardLoader:

    ; Enables loading encoded scripts. The default value is On
    zend_loader.enable=1

  5. Optional: the 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 the 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.

Tip:

To make sure Zend Guard Loader is properly installed, run the ()phpinfo function on a file installed on your Web server.