Install Zend optimizer in php5.3

Source: Internet
Author: User

The installation of Zend problem plagued me for a long time, the last article gave me a prompt, replace PHP version (the same version from the MSI version to zip version) after successful, reproduced as follows, the original address is: http://woshao.com/article/66f1f26e9ae211e0b4f6000c2959fd2a/


The latest PHP environment is configured recently. because MySQL and PHP versions need to be updated, the latest PHP 5.3.6 is used on the server. Then, go to Zend to download the latest zendoptimizer version 3.3.3, obviously zendoptimizer is not loaded after installation

The reason is that zendoptimizer 3.3.3 only supports PHP 5.2.x. If php 5.3.x is used, zendguardloader 5.5 is required. In other words, zendoptimizer will not be updated on Zend official website in the future.

Zendguardloader is installed, but zendguardloader 5.5 can only parse the code encrypted by Zend guard 5.5. The code encrypted by Zend guard in earlier versions is powerless. If you want to use Zend products with Zend guard5.5 or later versions for encryption, you can install zendguardloader directly, but if the developer of the product you want to use is not so avant-garde, continue reading.

At present, all PHP used in IIS In this era adopts the FastCGI method. FastCGI instilled in everyone the concept of using PHP of the non-thread-safe (SCN) version. If zendoptimizer 3.3.3 and PHP 5.2.x are added, the system crashes again because a thread-safe version is required for zendoptimizer.

For now, the latest qualified is the php-5.2.17-Win32-VC6-x86, which is divided into MSI and zip. According to the usage of MSI, but the FastCGI error is reported on the page after PHP is installed (if Zend is not installed yet). Put PHP under the PHP Directory. INI, Windows directory to delegate PHP. INI. Put PHP in both directories. in ini 3, the same errors have been attempted ......

Then I uninstalled the MSI installation version of PHP and changed it to the zip version. The PHP Directory does not contain PHP. INI, Windows directory to delegate PHP. INI, phpinfo () finally came out, "With Zend optimizer v3.3.3, copyright (c) 1998-2007, by Zend technologies"

Then, the installation of zendoptimizer in IIS6 + FastCGI PHP 5.2.17 thread security zip on one server is also successful. It proves that zendoptimizer can only be installed in PHP 5.2.x, but at least such installation is absolutely compatible.

About zendoptimize installation, download ZendGuardLoader-php-5.3-Windows

After the download, add the corresponding zendloader. dll file to PhP. ini.

For details, see

Zend guard loader installation instructions

---------------

1. Extract the Zend loader package.

2. locate and extract the zendguardloader. So (Linux) or zendloader. dll (Windows) that corresponds to your PHP version.

3. Add the following line to your php. ini file for loading the zendguardloader:

Linux and Mac OS X: zend_extension = <full_path_to_zendguardloader.so>

Windows non-thread safe: zend_extension = <full_path_to_zendloader.dll>

4. Add an aditional line to your php. ini for enabling zendguardloader

; Enables loading encoded scripts. The default value is on

Zend_loader.enable = 1

5. Optional: following lines can be added your php. ini file for zendguardloader Configuration:

; Disable license checks (for performance reasons)

Zend_loader.disable_licensing = 0

; The obfuscation level supported by Zend guard loader. The levels are detailed in the official Zend guard documentation. 0-no obfuscation is enabled

Zend_loader.obfuscation_level_support = 3

; Path to where licensed Zend products shoshould look for the product license. For more information on how to create a license file, see the Zend guard User Guide

Zend_loader.license_path =

6. If you use Zend debugger as well, please make sure to load it after the Zend guard Loader

7. If you use ioncube loader, please make sure to load it before Zend guard Loader

8. Restart your web server.

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.