Install and Enable Zend Guard Loader for PHP 5.6

Posted: 2017-06-17 10:28:01

Zend Guard Loader has been released with support for PHP 5.6 (for Windows and Linux).

These instructions are specific to installing and enabling Zend Guard Loader for WAMP (such as WampDeveloper Pro), but will also work for Linux (with some path modifications matching your distribution)…

Make sure you are running PHP-FCGI and not PHP-regular (which is not supported by Zend Guard Loader). For Windows, 32 bits builds are provided; for Linux, both 32 and 64 bits are provided.

To use the correct PHP build & type if using WampDeveloper Pro – in Components Tab, select a supported PHP 5.6 VC11 Channel, with Bits:32 and PHP-Type:FCGI, then check mark a valid PHP version to use, and switch to the selected version.

Open file php.ini, find the existing “[IonCube]” section, and after it ends, place in –

; The supplied opcache replaces your current opcache binary in order to allow correct extension loading. Disable existing php_opcache extension.
; If Ioncube is also loaded, Zend Gaurd Loader must be loaded AFTER Ioncube.
; If XDebug is also loaded, Zend Gaurd Loader must be loaded BEFORE XDebug.


; Optional ZendGuardLoader configuration

; Disable license checks for performance reasons

; The Obfuscation level supported by Zend Guard Loader. The levels are detailed in the official Zend Guard Documentation. 0 - no obfuscation is enabled

; 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

Make sure the default OPCache extension is disable and/or not loaded (as you have to use the modified version that came with Zend Guard Loader)…

; Determines if Zend OPCache is enabled

; Determines if Zend OPCache is enabled for the CLI version of PHP
[Zend OPcache]
; Do not use this if using APC, or other opcode caches.
; If XDebug is also loaded, Zend Opcache must be loaded BEFORE XDebug.


Save file php.ini for changes.

Place the downloaded Zend Guard Loader extension files from the zip into …Php\ext\, but do rename the new “php_opcache.dll” file to “ZendLoader-php_opcache.dll” (instead of overwriting the existing file).

Start Apache.

Check phpinfo() to see if the extension has been loaded successfully, otherwise check the PHP error log file.