PHP5.4.23用の最新のeAcceleratorをインストールする方法。
https://github.com/eaccelerator/eaccelerator
にアクセスし、下記の図を参考にし、eAcceleratorのMasterをダウンロードする。
これを解凍しインストールします。
[crayon]
# unzip eaccelerator-master.zip
# cd eaccelerator-master
# phpize
# ./configure –enable-eaccelerator=shared –with-php-config=/usr/bin/php-config -with-eaccelerator-userid=www-data
# make
# make install
# mkdir /var/eaccelerator
# chmod 777 /var/eaccelerator
# vi /etc/php5/conf.d/eaccelerator.ini
[eaccelerator]
zend_extension=”/usr/lib/php5/20100525/eaccelerator.so”
eaccelerator.shm_size = “16”
eaccelerator.cache_dir = “/var/eaccelerator”
eaccelerator.enable = “1”
eaccelerator.optimizer = “1”
eaccelerator.debug = “0”
eaccelerator.log_file = “/var/log/apache2/eaccelerator.log”
eaccelerator.name_space = “”
eaccelerator.check_mtime = “1”
eaccelerator.filter = “”
eaccelerator.shm_max = “0”
eaccelerator.shm_ttl = “3600”
eaccelerator.shm_prune_period = “120”
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”
# /etc/init.d/apache2 restart
# php -v
PHP 5.4.23-1+sury.org~precise+1 (cli) (built: Dec 12 2013 09:24:16)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
[/crayon]
参考:http://www.uetyi.mydns.jp/wordpress/linux-server/entry-437.html