Install Zend Guard Loader for PHP5.3 in a Linux system

Source: Internet
Author: User
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 download Address:
I386 version download address: http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
x86_64 version download address: 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.

[root@root]# php-v    php 5.3.8 (CLI) (Built:feb 02:37:06)    Copyright (c) 1997-2010 the PHP Group    Zend E Ngine 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.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.