Install and configure the php code optimizer ZendOptimizer

Source: Internet
Author: User
Tags download zend
Welcome to the Linux community forum and interact with 2 million technical staff to enter 1ZendOptimizer Introduction: ZendOptimizer is used to speed up the execution of PHP applications. the principle of implementation is to optimize the code generated by the Run-TimeCompiler before the program is finally executed. in general, run ZendOptimiz

Welcome to the Linux community forum and interact with 2 million technical staff> enter 1 ZendOptimizer Introduction: ZendOptimizer is used to speed up the execution of PHP applications. the principle of implementation is to optimize the code generated by the Run-Time Compiler before the program is finally executed. generally, run Zend Optimiz

Welcome to the Linux community forum and interact with 2 million technicians>

1 Introduction to ZendOptimizer:

ZendOptimizer is used to increase the execution speed of PHP applications. the principle of implementation is to optimize the code generated by the Run-Time Compiler before the program is finally executed. generally, the execution of the PHP program using Zend Optimizer is 40% to 100% faster than that without Zend Optimizer. this means that the visitor of the website can browse the webpage faster, so as to complete more transactions and create better customer satisfaction.

Faster response also means saving hardware investment and enhancing the services provided by the website. therefore, using Zend Optimizer improves the profitability of e-commerce. zend Optimizer can bring many benefits to PHP users, especially those who operate websites. fast Running of the PHP program can significantly reduce the server's CPU load and reduce the response time by half, that is, the time between the visitor clicking the link to the server and reading the page.

Installation and configuration of ZendOptimizer:

After installing Red Hat Linux 9 + Apache 2.0.55 + MySQL 5.1.6 + PHP 5.1.2, install the php accelerator ZendOptimizer 2.6.2 in linux.

After compiling PHP, Zend Optimizer 2.6.2 needs to be set by yourself. follow these steps:

Suppose you compile the PHP drop in the following directory:/opt/php

Step 1: Download Zend Optimizer 2.6.2

Step 2: undo the ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz, find the following file ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gzZendOptimizer-2.6.2-linux-glibc21-i386data5_1_x_compZendOptimizer.so to copy or upload ZendOptimizer. so (Binary) to the following directory:/opt/php/lib/

Step 3: Find the following file/home/user/domain/etc/php5/php. ini to open, edit, and enter the following content at the end:

Zend Optimizer options

Zend_optimizer.optimization_level = 1023

Zend_extension =/opt/php/lib/ZendOptimizer. so

Step 4: Save or upload the (Binary) php. ini file

Now all Zend Optimizer configurations have been completed. You can use Save it as info. php and enter it in the browser

Localhost/info. php has a Zend icon on the top of this page to check whether the installed ZendOptimizer version is activated!

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.