본문 바로가기

프로그래밍/PHP

php - eaccelerator설치

반응형

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


mkdir eaccelerator-0.9.5.3


mv eaccelerator-0.9.5.3.tar.bz2 eaccelerator-0.9.5.3


cd eaccelerator-0.9.5.3/


tar zxvf eaccelerator-0.9.5.3.tgz


export PHP_PREFIX="/usr/local/php"

$PHP_PREFIX/bin/phpize


./configure \

  --enable-eaccelerator=shared \

  --with-php-config=$PHP_PREFIX/bin/php-config


make

make install


mkdir /tmp/eaccelerator

chmod 777 /tmp/eaccelerator/

chown -R nobody.nobody /tmp/eaccelerator/


cd /usr/local/Zend/etc


cp php.ini php.ini_20071103.bak


cd /usr/local/Zend/etc


vi php.ini


extension="/usr/local/php/lib/php/extensions/no-debug-zts-20060613/eaccelerator.so"

eaccelerator.shm_size="32"

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"


아파치 재시작


반응형