Home > php教程 > php手册 > centos6下php5.3安装eaccelerator

centos6下php5.3安装eaccelerator

WBOY
Release: 2016-06-06 20:02:21
Original
981 people have browsed it

创建目录: mkdir /tmp/eaccelerator chmod -R 0777 /tmp/eaccelerator 解压: 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

创建目录:

mkdir /tmp/eaccelerator

chmod -R 0777 /tmp/eaccelerator

解压:

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 eaccelerator-0.9.6.1

cp control.php /网站跟目录/control.php

执行:

/usr/local/php/bin/phpize

如果出现找不到autoconf的提示,就装一个 yum install -y autoconf

编译:

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

make

make install

修改php.ini在最后加入以下配置,注意,zend_extension可以先通过查找eaccelerator.so得到你的正确路径,eaccelerator.allowed_admin_path也要替换为你真实的网站control.php被放置的目录:

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"

重启apache,安装完成centos6下php5.3安装eaccelerator

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template