2016/07/05 Zend Optimizer

Source: Internet
Author: User

Zend Optimizer is a free PHP optimization software opened by the PHP core engine "Zend" http://www.zend.com creator Zend technology company. According to Zend Company disclosed that using this software in some cases can at least improve performance by more than 30%! Now let's take a look at how to configure this set of software.

The installation of Zend optimizer is simple

1, run the installation files, first prompts you to select the installation directory, select a directory you like, click "Next".

2. The installation Wizard will ask you to select the currently used Web server (Apache, IIS, or other), select a good server and click "Next"

3. The installation Wizard prompts you to confirm the location of the php.ini (by default, C:\WINDOWS\) click "Next" and Prompt "backup php.ini to C:\WINDOWS\php.ini-Optimizer-bak, When uninstalling the software, you can revert to the original php.ini) and click "Next".

4. The installation Wizard prompts "to restart the IIS service in order to continue Setup", click Yes, Setup starts restarting the IIS service, and the installer prompts "The IIS service has successfully restarted" Click OK, and then click Finish to complete the installation.

5, after the installation process will automatically according to your choice to modify PHP.ini help you start the engine. Let's introduce the configuration options for Zend Optimizer to help you maximize your custom and reasonable configuration.

[Zend]

Zend_optimizer.optimization_level=15 zend_extension_ts= "C:\Program files\zend\lib\zendextensionmanager.dll" Zend_ extension_manager.optimizer_ts= "C:\Program files\zend\lib\optimizer-2.5.5" ※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※ ※※

[Zend]

zend_optimizer.optimization_level=1023 zend_optimizer.encoder_loader=0

zend_extension_ts= "C:\Program Files\zend\lib\zendoptimizer.dll" (what is seen in the online material may vary depending on the version of the content) ※※※※※※※※※※※※※※※※※※※ ※※※※※※※※※※※※※※※※※※※※

Now let's cover the implications of the above in these configuration files:

Zend_optimizer.optimization_level "= = Optimization degree, here defines how many optimization processes to start.

Zend_optimizer.encoder_loader "= = whether to allow processing of PHP files encrypted by Zend Encoder.

Zend_extension_ts the directory where the = = Optimizer resides.

Zend_extension_manager.optimizer_ts the = = Optimizer manages the directory.

The optimization process Zend_optimizer.optimization_level detailed explanation of the most important part here, look carefully! Zend opt has a total of 10 optimization processes, the more theoretically the more performance the better. Of course, there is always a gap between theory and practice. The more the optimization process opens, the more the performance is consumed, and the 10 optimization processes of Zend opt are not the same, which means that the effect is not average. The highest value defined by the Zend Company (high mode) is 15, and here 15 refers to the 1-4 optimization process. Of course, many friends are not satisfied with this, after all, the highest only open 4 optimization process even half of the total is not. The corresponding numeric codes (values) for each optimization process are as follows:

Do not use 0 <= if this is not installed, but also save a bit of memory to say!

Optimization Process 1 (PASS1)

1 Optimization Process 2 (PASS2)

2 optimization Process 3 (PASS3)

4 Optimization Process 4 (PASS4)

8 Optimization Process 5 (PASS5)

16 Optimization Process 6 (PASS6)

32 Optimization Process 7 (PASS7)

64 Optimization Process 8 (PASS8)

128 Optimization Process 9 (PASS9)

256 optimization process (PASS10)

512 the way in which the optimization process is enabled is controlled by the addition of these numeric codes (values) and by the parameter values of the parameters.

As in my config file Zend_optimizer.optimization_level = 1023, here's 1023 is the optimization process 1 to the optimization process 10 all the numerical code (value) is added to the sum, indicating the opening of all 10 optimization process. The Zend Company-defined high mode value mentioned earlier is 15,15, which also opens the optimization process 1-4. Encryption code support Zend_optimizer.encoder_loader detailed explanation for this parameter, I think if you have not seen the Zend Opt FAQ document, most of the friends do not know. This parameter is used to tell Zend opt to support code that has been Zend Encoder encrypted. By default, Zend Opt will support encrypted code. I recommend that you turn off this option if you do not use code that has been encrypted. This function involves the process of unpacking the anti-code, which can lead to the aggravation of the system load.

My friend has developed the corresponding anti-compilation tool, which is expected to be launched after the Spring Festival. The value of this parameter is only two 0 off, 1 is turned on. The default is 1 and the recommended setting is 0.

Module positioning zend_extension_ts, Zend_extension_manager.optimizer_ts without explanation, these parameters are Zend Optimizer related modules on the hard disk installation path.

How do I know if Zend Optimizer is running?

The answer is simple, as long as the PHP function phpinfo () to detect the knowledge, as follows: <? Phpinfo ();?>

The part of the displayed results about Zend Optimizer is like this:

This program makes use of the Zend Scripting Language engine:zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologie S with Zend Extension Manager v1.0.3, Copyright (c) 2003-2004, by Zend Technologies with Zend Optimizer v2.5.3, copyright (c) 1998-2004, by Zend Technologies

Indicates Zend Optimizer for PHP optimized successfully

2016/07/05 Zend Optimizer

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.