Warning: mysql_query(): No such file or directory in /home/srev11z/serversreview.net/wp-content/plugins/seo-booster-pro/seo-booster.php on line 1676

Warning: mysql_query(): A link to the server could not be established in /home/srev11z/serversreview.net/wp-content/plugins/seo-booster-pro/seo-booster.php on line 1676
eAccelerator on PHP 5.3.5

eAccelerator on PHP 5.3.5

by admin on February 11, 2011

in Http Maid Note

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

with eAccelerator

Reference: eAccelerator Wiki

{ 2 comments… read them below or add one }

Leave a Comment

Previous post:

Next post: