Starting from PHP5.3 If you want to support Zendguard encrypted PHP code, you must install Zend Guard Loader, and the old Zend Optimizer will not be supported.
This article describes how to install Zend Guard Loader support for PHP5.3 in a Linux system.
The operating system is centos5.5,php version 5.3.8 (the PHP default version in CentOS5.5 is lower, if you want to upgrade to the latest version of PHP, you can use the Remi Report source to upgrade).
1.Zend Guard Loader official:
Version i386: http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
Version x86_64: http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
CentOS i386 version of PHP module default location:/usr/lib/php/modules
CentOS x86_64 version of PHP module default location:/usr/lib64/php/modules
2. Download the latest Zend Guard loader from zend.com to Linux server and unzip, this article takes x86_64 version as an example to explain the installation process, note read the Readme file under the generated directory.
Cd/usr/local/srcwget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64. Tar.gztar ZXVF zendguardloader-php-5.3-linux-glibc23-x86_64.tar.gzcd/usr/local/src/ ZENDGUARDLOADER-PHP-5.3-LINUX-GLIBC23-X86_64/PHP-5.3.XCP zendguardloader.so/usr/lib64/php/modules/
3. Create the file Zend.ini in the/etc/php.d/directory as follows:
Zend_extension=/usr/lib64/php/modules/zendguardloader.so
Or
Vi/etc/php.ini
Add at the end:
[zend.loader]zend_loader.enable=1zend_extension=/usr/lib64/php/modules/zendguardloader.so
4. Restart httpd that is:
Service httpd Restart
5. Then php-v see if Zend Guard Loader is installed successfully.
[Email protected]]# php-v php 5.3.8 (CLI) (Built:feb 02:37:06) Copyright (c) 1997-2010 the PHP group
zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
Note: With Zend Guard Loader v3.3 appears to indicate that the installation was successful and if not, the installation fails.
Install Zend Guard Loader for PHP5.3 in a Linux system