Install eAccelerator on CentOS

What is eAccelerator ?
eAccelerator is a free open-source PHP accelerator & optimizer. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.

eAccelerator Installation

Login in to your SSH Terminal and then execute the following commands.

Code:
yum install php-devel
yum groupinstall 'Development Tools'
Now lets change the directory to /tmp
Code:
cd /tmp
Download the latest eAccelerator release from their website.

Code:
wget http://acelnmp.googlecode.com/files/eaccelerator-0.9.6.1.tar.bz2
tar xvfj eaccelerator-0.9.6.1.tar.bz2
Change the directory to eaccelerator-0.9.6.1
Code:
cd eaccelerator-0.9.6.1
PHPize
Code:
phpize
./configure
Now lets install it.
Code:
make
make install
Create the file /etc/php.d/eaccelerator.ini
Code:
vi /etc/php.d/eaccelerator.ini
Enter the following codes in the above file.
Code:
extension="eaccelerator.so"
eaccelerator.shm_size="0"
eaccelerator.cache_dir="/var/cache/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"
Create /var/cache/eaccelerator directory
Code:
mkdir -p /var/cache/eaccelerator
Change permission of the directory.
Code:
chmod 0777 /var/cache/eaccelerator
Restart Apache Service.
Code:
/etc/init.d/httpd restart
You have successfully installed eAccelerator on your machine.