Home > php教程 > PHP开发 > Install the ZendOptimizer extension for PHP5.3 or above

Install the ZendOptimizer extension for PHP5.3 or above

高洛峰
Release: 2016-12-26 16:30:29
Original
1588 people have browsed it

This article mainly introduces the method of installing the ZendOptimizer extension in PHP5.3 and above. It is very detailed and is recommended for reference by friends in need.

Many PHP programs now require the ZendOptimizer environment, but ZendOptimizer has been supported after PHP5.2. So what should I do? Zend will not do this. It turns out that ZendOptimizer has been officially changed to Zend Guard Loader since PHP5.3.

Zend Guard Loader is released, and Zend Optimizer will no longer be updated, and due to the large difference when using Zend Guard to encrypt code, you will be prompted whether to use php5.3. If you use 5.3 then the code cannot be used in php5. 2 runs on.

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) to upload to the server.

Load ZendGuardLoader and 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=
Copy after login

The following are explained one by one:

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

Add the following line to your php.ini file:

;Linux和Mac OS X:
zend_extension=<ZendGuardLoader.so的绝对路径>
;Windows的非线程安全的:
zend_extension=<ZendLoader.dll的绝对路径>
Copy after login

Add the following line to load ZendGuardLoader:

;启用加载编码脚本。默认开启
zend_loader.enable=1
Copy after login

Optional: Configure ZendGuardLoader

;禁用检查授权(出于性能原因)
zend_loader.disable_licensing=0
;配置混淆水平 0 - 不支持混淆
zend_loader.obfuscation_level_support=3
;配置寻找授权文件的路径
zend_loader.license_path=
Copy after login

If you use Zend debugger at the same time, please make sure to load Zend guard Loader before loading Zend debugger

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

Restart Web services.

If you see the following content in phpinfo (different versions may be different):

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.4.0, Copyright (c) 1998-2011 Zend Technologies
Copy after login

It means the installation has been successful!

The above is the entire content of this article. I hope you will like it.

For more articles related to installing the ZendOptimizer extension in PHP5.3 and above, please pay attention to the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template