What is eAccelerator ?
eAccelerator is a free open source PHP accelerator, optimizer, encoder and dynamic content cache for PHP. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated. Also it uses some optimizations to speed up execution of PHP scripts. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.
To install it you need to follow the below mentioned steps:
# wget http://space.dl.sourceforge.net/project/eaccelerator/eaccelerator/eAccelerator%200.9.6.1/eaccelerator-0.9.6.1.zip
OR
wget http://prdownloads.sourceforge.net/eaccelerator/eaccelerator-0.9.6.1.tar.bz2?use_mirror=ufpr
# unzip eaccelerator-0.9.6.1.zip
# cd eaccelerator-0.9.6.1
# phpize
# ./configure –enable-eaccelerator=shared –with-php-config=/usr/local/bin/php-config
# make
# make install
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
open_basedir don’t play well with eaccelerator
The following message will be displayed in the log:
PHP Warning: Unknown: open_basedir restriction in effect. File() is not within the allowed path(s)
PHP Warning: Unknown: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/) in Unknown on line 0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
We need to disable inode since future versions of eAccelerator won’t use it.
We need to change the compilation to
cd eaccelerator-$VERSION
phpize
./configure --enable-eaccelerator=shared --without-eaccelerator-use-inode
make
make install