Install eaccelerator on Plesk Linux Server

To Install eaccelerator on Plesk Linux Server refer to the following steps and make sure that you have logged in to the shell with the root login details.

cd /usr/local/src/

wget http://sourceforge.net/projects/eaccelerator/files/eaccelerator/eAccelerator%200.9.5.2/eaccelerator-0.9.5.2.zip/download

unzip eaccelerator-0.9.5.2.zip

cd eaccelerator-0.9.5.2/

phpize

On most of the server phpsize command is not working due to that run the command

yum install php-devel

And now try to phpzine once again

phpize

export PHP_PREFIX=”/usr”

$PHP_PREFIX/bin/phpize

./configure -enable-eaccelerator=shared -with-php-config=$PHP_PREFIX/bin/php-config

make

make test

make install

Now make backup for the current working php.ini file

cp -p /etc/php.ini /etc/php.ini-back

nano /etc/php.ini

Now add the following lines in the php.ini file

~~~~~~~
extension=”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″
~~~~~~~~~~

Now run the following command to check the modules loaded correctly or not.

php -m

Restart the web service

/etc/init.d/httpd stop

/etc/init.d/httpd start

About Anant 386 Articles
Senior technical writer