PHP5.3 installation zendoptimizer extension _php tips

Source: Internet
Author: User
Tags download zend phpinfo ioncube

Now many PHP programs need to zendoptimizer environment, but Zendoptimizer after PHP5.2 has been supported, then how to do, Zend will not do so, the original PHP5.3 began zendoptimizer officially changed Zend Guard Loader.

Zend Guard Loader's release, and Zend optimizer will not be updated, and because the difference is very large use Zend Guard encryption code will prompt you to use php5.3, if you use 5.3 then the code can not run on the php5.2.

Zend Guard Loader Installation Instructions

Download 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

and extract zendguardloader.so (Linux) or ZendLoader.dll (Windows) upload to the server.

Load Zendguardloader, configure PHP.ini
Example:

Copy Code code as follows:

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 version only supports NTS (not thread-safe) version of the PHP5.3, that is, phpinfo thread safety for disabled!

Add the following line to your php.ini file:

Copy Code code as follows:

; Linux and Mac OS X:
Absolute path of zend_extension=<zendguardloader.so >
; Non-thread-safe for Windows:
Absolute path of Zend_extension=<zendloader.dll >

Add the following line to load Zendguardloader:

Copy Code code as follows:

; Enable load encoding scripts. Open by default
Zend_loader.enable=1

Optional: Configure Zendguardloader

Copy Code code as follows:

; Disable check authorization (for performance reasons)
Zend_loader.disable_licensing=0
; Configuration obfuscation Level 0-confusion not supported
Zend_loader.obfuscation_level_support=3
; Configure the path to find an authorization file
Zend_loader.license_path=

If you use Zend Debugger at the same time, make sure to load Zend Guard loader before loading Zend Debugger

If you use Ioncube loader at the same time, make sure to load Ioncube loader before loading Zend Guard Loader

Restart the Web service.

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

Copy Code code as follows:

This program makes the Zend scripting Language Engine:
Zend Engine v2.4.0, Copyright (c) 1998-2011 Zend Technologies

Description of the installation has been successful!

The above mentioned is the entire content of this article, I hope you can enjoy

Please take a moment to share the article with your friends or leave a comment. We will sincerely thank you for your support!

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.