eAccelerator 0.9.5.3 インストール

CentOS 5.2 5.3
eaccelerator-0.9.5.3 インストール

インストール時のパッケージ
php-5.2.9-1.el5.remi
php-devel-5.2.9-1.el5.remi

# wget 

# tar jxvf eaccelerator-0.9.5.3.tar.bz2
# cd eaccelerator-0.9.5.3
# export PHP_PREFIX="/usr"
# $PHP_PREFIX/bin/phpize
# ./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
# make
# make install

インストール後 php.ini の最後の行に以下を追加して下さい。

# vi /etc/php.ini
[eaccelerator]
zend_extension="/usr/lib/php/modules/eaccelerator.so"
eaccelerator.shm_size = "64"
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.keys     = "shm_and_disk"
eaccelerator.sessions = "shm_and_disk"
eaccelerator.content  = "shm_and_disk"
eaccelerator.log_file = "/var/log/httpd/eaccelerator_log"

テンポラリーディレクトリの作成と所有者とユーザーを変更

# mkdir /tmp/eaccelerator
# chown apache:apache /tmp/eaccelerator/

Apache再起動
# /etc/rc.d/init.d/httpd restart

eAccelerator有効化を確認

# php -v
PHP 5.2.9 (cli) (built: Feb 27 2009 14:42:58)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator,by eAccelerator
Print Friendly, PDF & Email

CentOS5.2centos,php

Posted by admin