PHP5.3, PHP5.4 installation zendoptimizer_php tutorial

Source: Internet
Author: User
Tags phpinfo ioncube
Now many PHP programs need to zendoptimizer environment, but Zendoptimizer after PHP5.2 has been supported, then what to do, Zend will not do so, originally PHP5.3 began zendoptimizer formally changed to Zend Guard Loader.

Zend Guard Loader is released, and Zend Optimizer is no longer updated, and because of the difference very much when you use Zend Guard to encrypt code, you will be prompted whether to use php5.3, and if you use 5.3 then the code will not run on php5.2.

Zend Guard Loader Installation Instructions
1. Download the Zend Guard loader package. (Official address: http://www.zend.com/en/products/guard/downloads)

Linux:
X86:http://downloads.zend.com/guard/5.5.0/zendguardloader-php-5.3-linux-glibc23-i386.tar.gz
X64:http://downloads.zend.com/guard/5.5.0/zendguardloader-php-5.3-linux-glibc23-x86_64.tar.gz

Windows:

Http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-Windows.zip
2. And extract zendguardloader.so (Linux) or ZendLoader.dll (Windows) to upload to the server.

3. Load Zendguardloader, configure PHP.ini
Example:
Zend_extension=c:\web\php\ext\zendloader.dll
Zend_loader.enable=1
Zend_loader.disable_licensing=0
Zend_loader.obfuscation_level_support=3
Zend_loader.license_path=
Here is a description:

Note that the Windows edition only supports NTS (non-thread-safe) version of PHP5.3, that is, phpinfo thread safety is disabled!

Add the following line to your php.ini file:

Linux and Mac OS x:zend_extension=
Windows non-thread safe: zend_extension=
4. Add the following line to load the Zendguardloader:

; Enable the load encoding script. Enabled by default
Zend_loader.enable=1
5. Optional: Configure Zendguardloader

; Disable check authorization (for performance reasons)
Zend_loader.disable_licensing=0
; Configuration obfuscation level 0– does not support obfuscation
Zend_loader.obfuscation_level_support=3
; Configure the path to find an authorization file
Zend_loader.license_path=
6. If you are using Zend debugger at the same time, make sure to load the Zend Guard loader before loading Zend Debugger

7. If you are using Ioncube loader at the same time, make sure to load the Ioncube loader and then load Zend Guard Loader

8. Restart the Web service.

If you see the following in Phpinfo (different versions may vary):

This program makes use of the Zend Scripting Language engine:zend Engine v2.4.0, Copyright (c) 1998-2011 Zend Technologies
Description The installation has been successful!

http://www.bkjia.com/PHPjc/363807.html www.bkjia.com true http://www.bkjia.com/PHPjc/363807.html techarticle now many PHP programs need zendoptimizer environment, but Zendoptimizer after PHP5.2 has been supported, what to do, Zend will not do so, the original PHP5.3 began zendoptimizer formally changed ...

  • 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.