Install eaccelerator in php5.3 in centos6

Source: Internet
Author: User
Create directory: mkdirtmpeacceleratorchmod-R0777tmpeaccelerator unzip: unzip cdeacc

Create directory: mkdir/tmp/eaccelerator chmod-R 0777/tmp/eaccelerator unzip: wget http://ncu.dl.sourceforge.net/project/eaccelerator/eaccelerator/eAccelerator%200.9.6.1/eaccelerator-0.9.6.1.tar.bz2 tar jxvf eaccelerator-0.9.6.1.tar.bz2 cd eacc

Create directory:

Mkdir/tmp/eaccelerator

Chmod-R 0777/tmp/eaccelerator

Decompress:

WgetHttp://ncu.dl.sourceforge.net/project/eaccelerator/eaccelerator/eAccelerator%200.9.6.1/eaccelerator-0.9.6.1.tar.bz2

Tar jxvfEaccelerator-0.9.6.1.tar.bz2

CdEaccelerator-0.9.6.1

CpControl. php/Website and directory/control. php

Run:

/Usr/local/php/bin/phpize

If you cannot find autoconf, install yum install-y autoconf.

Compile:

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

Make

Make install

Modify php. add the following configuration at the end of ini. Note that zend_extension can be searched for by eaccelerator. so get your correct path, eaccelerator. allowed_admin_path should also be replaced with your actual website control. php Directory:

Zend_extension = "/usr/lib/php5/20090626 + lfs/eaccelerator. so"

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"

Eaccelerator. allowed_admin_path = "/var/www/control. php"

Restart apache. installation is complete.

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.