Install eAccelerator In debian

Source: Internet
Author: User
Install eAccelerator In debian-Debian information for the Linux release. Configure eAccelerator In Debian

What is eAccelerator?

EAccelerator is a further development from mmcache PHP Accelerator & Encoder. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated.

Installing eAcceleration in Debian

Step 1: download and install the php5-dev, which will be used when compiling eAccelerator

# Apt-get install php5-dev

Download the eAccelerator source code package and compress it

# Tar jxvf eaccelerator-0.9.5.3.tar.bz2

# Cd eaccelerator-0.9.5

Configuration files required for common phpize Compilation

#/Usr/bin/phpize

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

# Make

# Make install

Installation Complete

Add the following configuration to/etc/php5/apache2/php. ini:

Extension = eaccelerator. so

[Eaccelerator]

Eaccelerator. shm_size = 16

Eaccelerator. cache_dir =/tmp/eaccelerator

Eaccelerator. enable = 1

Eaccelerator. optimizer = 1

Eaccelerator. check_mtime = 1

Eaccelerator. debug = 0

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

Create a temporary directory for the eAccelerator

# Mkdir/tmp/eaccelerator

# Chmod 777/tmp/eaccelerator

Restart apache

#/Etc/init. d/apache2 restart

Test whether the installation is complete

Create the following files in the apache directory and view them in the browser.


Phpinfo ();

?>

If you can find the eAccelerator information, it indicates that the installation is successful and you can use it.
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.