Install and Enable Zend Guard Loader for PHP 5.6

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 –

[ZendGaurdLoader]
; ONLY PROVIDED UNDER PHP-FCGI
; 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.

zend_extension="C:\WampDeveloper\Components\Php\ext\ZendLoader.dll"
zend_extension="C:\WampDeveloper\Components\Php\ext\ZendLoader-php_opcache.dll"
zend_loader.enable=1

; Optional 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=

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)…

[opcache]
; Determines if Zend OPCache is enabled
;opcache.enable=0

; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=0
[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.

;zend_extension="C:\WampDeveloper\Components\Php\ext\php_opcache.dll"
;opcache.enable=0

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.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>