Linux installation Zend Optimizer and Eaccelerator tutorials

Source: Internet
Author: User
Tags bz2 download zend ini phpinfo zend

Eaccelerator and Zend Optimizer is an accelerated software, we can use it to synchronize with the PHP environment to use PHP performance better, let's take a look at Linux installation Zend Optimizer and Eaccelerator tutorials

Download Zend Optimizer

Http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

TAR-XZVF zendoptimizer-3.3.9-linux-glibc23-i386.tar.gz

CD zendoptimizer-3.3.9-linux-glibc23-i386

CD data

CD 5_1_x_comp

CP zendoptimizer.so/usr/lib/php/modules/

Modify configuration file

Vim/etc/php.ini

Add the following two lines

Zend_optimizer.optimization_level=15 #启动多少优化过程

Zend_extension=/usr/lib/php/modules/zendoptimizer.so

Then restart the httpd service, check with Phpinfo () and Discover

This program makes the Zend scripting Language Engine:

Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

With Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

Install Eaccelerator

wget http://bart.eaccelerator.net/source/0.9.6/eaccelerator-0.9.6.tar.bz2

#bzip2-D eaccelerator-0.9.6.tar.bz2

#tar-XVF Eaccelerator-0.9.6.tar

#cd eaccelerator-0.9.6

#/usr/bin/phpize

#./configure–enable-eaccelerator=shared–with-php-config=/usr/bin/php-config

#make

#cp modules/eaccelerator.so/usr/lib/php/modules/

#vim/etc/php.ini

Add information as follows:

[Eaccelerator]

Extension=eaccelerator.so

Eaccelerator.shm_size=64 here is the size of the shared memory used by the accelerator

Eaccelerator.cache_dir=/tmp/eaccelerator

Eaccelerator.enable=1

Eaccelerator.optimizer=1

Eaccelerator.check_mtime=1

Eaccelerator.debug=0

Eaccelerator.log_file=/var/log/httpd/eaccelerator.log

Eaccelerator.filter=

Eaccelerator.shm_max=0

Eaccelerator.shm_ttl=0

Eaccelerator.shm_prune_period=0

Eaccelerator.shm_only=0

After modifying the php.ini file, set permissions on the cached folder

#mkdir/tmp/eaccelerator

#chmod 777/tmp/eaccelerator

Then restart the httpd server, and then View Phpinfo (), which has the following records:

This program makes the Zend scripting Language Engine:

Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

With Eaccelerator v0.9.6, the Copyright (c) 2004-2010 eaccelerator, by Eaccelerator

With Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

Of course, you can also see if the installation was successful through Php-i|grep Zend and Php-i |grep eaccelerator.

The PHP version of the view can be viewed through php-v.

Okay, here's a little introduction. About Zend Optimizer and eaccelerator installation configuration is finished, the version introduced in this article is a bit old you can choose the appropriate version of the PHP version of the Zend Optimizer and Eaccelerator.

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.