Zend 설치후 설치
# wget http://bart.eaccelerator.net/source/0.9.6/eaccelerator-0.9.6-rc1.tar.bz2
# tar xvfj eaccelerator-0.9.6-rc1.tar.bz2
# cd eaccelerator-0.9.6-rc1
# 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
아래는 확인해둘것
Installing shared extensions: /usr/local/php_5.2.2/lib/php/extensions/no-debug-non-zts-20060613/
# mkdir /tmp/eaccelerator
# chmod 0777 /tmp/eaccelerator
# chown nobody:nobody /tmp/eaccelerator
# vi /usr/local/php/lib/php.ini
[Zend] ;반드시 Zend 전에 입력
extension_dir=/usr/local/php_5.2.2/lib/php/extensions/no-debug-non-zts-20060613/
extension="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"
eaccelerator.allowed_admin_path="/home/kantukan/public_html/ybbs/shop/"
# /etc/init.d/httpd restart
모듈 설치 확인
# php -v
PHP 5.2.2 (cli) (built: Mar 29 2010 18:45:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with eAccelerator v0.9.6-rc1, Copyright (c) 2004-2007 eAccelerator, by eAccelerator
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
관리자 페이지 설정
# vi control.php
$user = "admin";
$pw = "tnghkrl";
# cp control.php /home/kantukan/public_html/ybbs/shop/control.php
웹페이지에서 확인
설치파일 삭제
# cd /
# rm -Rf /root/eaccelerator-0.9.6-rc1*
아파치 재실행
# /etc/init.d/httpd restart
댓글 없음:
댓글 쓰기