php版本:php5.3.27

访问网站报如下错:


Zend Optimizer not installed
This file was encoded by the Zend Guard. In order to run it, please install the Zend Optimizer (available without charge), version 3.0.0 or later.
Seeing this message instead of the website you expected?
This means that this webserver is not configured correctly. In order to view this website properly, please contact the website's system administrator/webmaster with the following message:

The component "Zend Optimizer" is not installed on the Web Server and therefore cannot service encoded files. Please download and install the Zend Optimizer (available without charge) on the Web Server.

Note: Zend Technologies cannot resolve issues related to this message appearing on websites not belonging to Zend Technologies.
What is the Zend Optimizer?
The Zend Optimizer is one of the most popular PHP plugins for performance-improvement, and has been available without charge, since the early days of PHP 4. It improves performance by scanning PHP's intermediate code and passing it through multiple Optimization Passes to replace inefficient code patterns with more efficient code blocks. The replaced code blocks perform exactly the same operations as the original code, only faster.
In addition to improving performance, the Zend Optimizer also enables PHP to transparently load files encoded by the Zend Guard.
The Zend Optimizer is a free product available for download from Zend Technologies. Zend Technologies also developed the PHP scripting engine, known as the Zend Engine.


现在很多PHP程序都需要ZendOptimizer环境,但是ZendOptimizer在PHP5.2之后已经被支持,那怎么办,Zend也不会这么做,原来PHP5.3开始ZendOptimizer正式改为Zend Guard Loader。

1.下载Zend Guard Loader 

    http://www.zend.com/en/products/guard/downloads 

2.解压ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz 

3.提取ZendGuardLoader.so到/www/wdlinux/Zend/lib/ZendExtensionManager.so

4.修改php.ini

[zend]

略...

zend_extension=/www/wdlinux/Zend/lib/ZendGuardLoader.so

zend_loader.enable=1 

zend_loader.disable_licensing=0 

zend_loader.obfuscation_level_support=3 

zend_loader.license_path=

5.重启web服务器