Install Zend optimizer and eaccelerator for PHP in Windows

Source: Internet
Author: User

Install Zend OptimizerYou can use the official EXE, zendextensionmanager. dll and Optimizer-3.3.0/php-5.2.x/zendoptimizer. dll can be extracted and placed in a Zend folder, put the location, directly configure PHP. ini.

 

1. Assume that the file is installed in the D:/Wamp/Zend directory.
2. Modify PHP. ini and add the following lines at the end of PHP. ini.

[Zend]
Zend_optimizer.optimization_level = 15
Zend_optimizer.encoder_loader = 0
Zend_extension_ts = "D: \ Wamp \ Zend \ zendextensionmanager. dll"
Zend_extension_manager.optimizer_ts = "D: \ Wamp \ Zend \ Optimizer-3.3.0"

3. Save, restart Apache, and write a test. php file.<? PHP phpinfo ();?>If the following two figures show that Zend optimizer has taken effect.

 

Install eaccelerator
1. Download the compiled DLL file from http://www.sitebuddy.com/PHP/Accelerators/eAccelerator_windows_binaries_builds.
2. Put eaccelerator. dll in the D:/Wamp/PHP/EXT directory and create the cache directory D: \ Wamp \ TMP.
3. Configure eaccelerator in PHP. ini as a Zend plug-in. Add the following lines before the [Zend] configuration section above.

[Eaccelerator]
Zend_extension_ts = "D: \ Wamp \ PHP \ ext \ eaccelerator_ts.dll"
Eaccelerator. cache_dir = "D: \ Wamp \ tmp"
Eaccelerator. shm_size = "64"
Eaccelerator. Enable = "1"
Eaccelerator. optimizer = "1"
Eaccelerator. DEBUG = "0"
Eaccelerator. check_mtime = "1"
Eaccelerator. Filter = ""
Eaccelerator. shm_max = "0"
Eaccelerator. shm_ttl = "0"
Eaccelerator. shm_prune_period = "0"
Eaccelerator. shm_only = "0"
Eaccelerator. Compress = "1"
Eaccelerator. compress_level = "9"
Eaccelerator. Keys = "SHM"
Eaccelerator. Sessions = "SHM"
Eaccelerator. content = "SHM"

4. Save and restart Apache. If the information shown in test. php above proves that eaccelerator has taken effect.

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.