Php5.3.x install Zend optimizer (Zend guard loader) [Linux] [windows]

Source: Internet
Author: User

By now, Zend optimizer's current versions are 3.3.3 (Windows) and 3.3.9 (Linux), and php5.3 and later versions are not supported.

Many of my colleagues, including myself, have always been able to use php5.2 only by B. Of course, because Dede has poor support for php5.3, there is no way to stop at the 5.2 era.

According to the official statement, this has always been the case: due to too many upgrades to php5.3, after ZP is updated, it will no longer be compatible with PHP files encrypted by Zeng guard of lower versions, PHP environments earlier than php5.2.13 are not supported.

To sum it up, it means that "the PHP version is updated too quickly and there is no need to be backward compatible with the Zend guard and php5.2 and later versions of earlier versions ". Just as php5.3 is not compatible with php5.2, many functions are canceled. Many people think this is the watershed between the PhP5 and PhP6 times.

PhP6 is coming soon.

The most important thing is that Zend optimizer can be installed in php5.3. Zend has a dedicated version for Version 5.3. This is the legendary "Zend guard loader (runtime for PHP 5.3 )"

Currently, it is estimated that this version can only be used for the 5.3 series. its official website has clearly listed the 5.2 and 5.3 series: http://www.zend.com/en/products/guard/downloads.

Php5.3 has been officially changed to "Zend guard loader" to install Zend optimizer. Simply put, you do not need to install software, but directly call the component (Extension) in PHP. ini.

Note:

Please note this loader will not load PHP 5.2 code encoded with previous version of guard. All PHP files must be re-encoded to run in PHP 5.3.

Simply put, this version does not support Zend guard compilation in php5.3 or earlier versions. All files must be re-compiled in version 5.3. Upgrade Zend guard to the latest version because Zend guard4 can only be encrypted by PhP4 and PhP5, for the latest version of Zend guard, only php5.2 and php5.3 versions are available for PHP.

It can be seen from this that the upgrade cost of php5.3 + Zend guard is very high. I have already begun to hide it, because my brother does not live in a two-bedroom apartment of 77 yuan.

The latest Zend guard Version 5.5 was released at the end of last year. It was found at http://www.4wei.cn/archives/1000433. In the future, Zend optimizer will no longer exist. Instead, Zend guard loader will be replaced. No matter what optimization, acceleration, and protection functions are loaded through this function. It sounds like app extensions.

The usage of guard loader is no different from the previous one. You just need to add a command at the end of PHP. ini to introduce the file.
Help
1

Zend_extension =

I would like to explain why we should use "the last" here, which is my personal suggestion, because there may be some inexplicable problems during use, such as the failure to properly load Zend and the inability to read PHP files, this is especially manifested in conflicts with the loading sequence of the eaccelerator.

The following is the shell snippet of the operation:
Step 1: query the currently loaded PHP. ini through the probe or phpinfo.

Loaded configuration file:/etc/PhP5/apache2/PHP. ini

Step 2: Download the extension

Wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz

In Windows

Http://downloads.zend.com/guard/5.1.0EA/ZendGuardLoader-php-5.3-Windows.zip

Step 3: extract zendguardloader. So, which is called zendloader. dll in windows and put it in the ext directory of PHP (recommended, not required)
Step 4: Edit PHP. ini and add relevant configuration information

VI/etc/PhP5/apache2/PHP. ini
Zend_extension =/usr/local/Zend/zendguardloader. So

Or

[Zend. loader]
Zend_loader.enable = 1
Zend_loader.disable_licensing = 1
Zend_loader.obfuscation_level_support = 3
Zend_loader.license_path =
Zend_extension = "C: \ PHP \ ext \ zendloader. dll"

Finally, restart webserver.

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.