Download eAccelerator :# wget http://downloads.sourceforge.net/project/eaccelerator/eaccelerator/eAccelerator%200.9.6.1/eaccelerator-0.9.6.1.zip
# unzip eaccelerator-0.9.6.1.zip
# cd eaccelerator-0.9.6.1
# /usr/local/bin/phpize
or
# phpize
If you are getting below error while using the command "phpize" , then you need to install the missing package.
-bash: phpize: command not foundOn php 5.2# yum install php-devel
On php 5.3# yum install php53-devel
# ./configure --enable-eaccelerator=shared --with-php-config=/usr/local/bin/php-config
or
# ./configure
# make
# make install
Grep the php.ini file# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/etc/php5/cgi
Loaded Configuration File => /usr/local/etc/php5/cgi/php.ini
Open php.ini file# vi /usr/local/etc/php5/cgi/php.ini
Add the below line at the end of the php.ini file.extension="eaccelerator.so"
Restart the Apache # /etc/init.d/httpd restart
Check whether eAcceleartor has installed or not# php -v
PHP 5.3.22 (cli) (built: Feb 23 2013 23:45:01)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
Thats it !!