Step by step installation - Eaccelerator

Eaccelerator is a PHP accelerator/encoder/caching utility that is based off of the old mmcache (which is no longer being maintained). What Eaccelerator does is it caches your PHP scripts so that the database is no longer being queried everytime someone needs a script. This is
particularly useful for large forums, but pretty much anyone can benefit from it. Since these scripts are cached, you’ll notice a decrease in memory use and server load.

Install instructions:
1.Login as root
2.Download Eaccelerator
Lets get the source file first.
wget http://bart.eaccelerator.net/source/0.9.5.2/eaccelerator-0.9.5.2.zip
Extract and move into the directory
unzip eaccelerator-0.9.5.2.zip
cd eaccelerator-0.9.5.2"

Note:
# need to find where PHP is installed. For most, it’s usually either “/usr/bin” or “/usr/local”, but it may be something else. you can find using "which php" command.

Create configuration files

phpize

# If you are getting phpize: command not found , Then you need to install php-devel.

yum install php-devel

and then follow the steps

phpize
./configure –enable-eaccelerator=shared –with-php-config=/usr/bin/php-config
make
make install

Take note of where the shared lib was installed (last line of output of the the above command)

cp eaccelerator.ini /etc/php.d

Edit the above (copied) file, locate this line:
zend_extension_ts=”/usr/lib/php4/eaccelerator.so”

and replace it with ( whatever path you have noted )

zend_extension=”/usr/lib/php/modules/eaccelerator.so”

Now all that’s left is to create a tmp dir for eaccelerator’s cache (/tmp/eaccelerator is the default, but you can change it in the above file), and restart apache.

mkdir /tmp/eaccelerator
chown apache /tmp/eaccelerator
chgrp apache /tmp/eaccelerator
chmod 644 /tmp/eaccelerator
/sbin/service httpd restart

Test by knocking up a phpinfo.php page or give php -v command via shell you should note.

********

PHP 5.0.4 (cli) (built: Nov 8 2005 08:27:12)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator

********

Enjoy:)


    0 comments: