In my previous note i’m installing PHP 5.3.5 with XCache PHP opcode cacher, if you prefer to use eAccelerator for your PHP cacher, here is the guide note.
Download and install eAccelerator package
wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.zip unzip eaccelerator-0.9.6.1.zip cd eaccelerator-0.9.6.1 phpize ./configure make make install
add eAccelerator extension and settings to php.ini
nano /usr/local/lib/php.ini
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20090626/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"
those setting above is default, for more information you can visit: eAccelerator Settings
create eAccelerator tmp folder
mkdir /tmp/eaccelerator chmod 777 /tmp/eaccelerator
Check your PHP Version with eAccelerator installed
php -v
PHP 5.3.5 (cli) (built: Feb 11 2011 02:10:37)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
Reference: eAccelerator Wiki
Hello , I am trying to install eaccelerator in ubuntu .My version is this:
PHP Version 5.3.5-1ubuntu7.2
I see you sucessfully installed eaccelerator but i don’t know why eaccelerator doesn’t appear on my phpinfo().
Any suggestion?
logica_razon@hotmail.com
check your eaccelerator.so location’s first
#updatedb
#locate eaccelerator.so
declare your eaccelerator in php.ini
restart php / apache