CentOS 5: Eaccelerator Installation

Posted on October 6, 2009. Filed under: Uncategorized |

eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It typically reduces server load and increases the speed of your PHP code by 1-10 times.

Through SSH.

yum install php-devel

yum groupinstall 'Development Tools'

Change directory.

cd /tmp

Get the file.

wget http://bart.eaccelerator.net/source/0.9.5.2/eaccelerator-0.9.5.2.tar.bz2

tar xvfj eaccelerator-0.9.5.2.tar.bz2

Change directory.

cd eaccelerator-0.9.5.2

Phpize.

phpize

./configure

Install it.

make

make install

Create the file /etc/php.d/eaccelerator.ini

vi /etc/php.d/eaccelerator.ini

Enter.

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 ditrectory

mkdir -p /var/cache/eaccelerator

Change permission.

chmod 0777 /var/cache/eaccelerator

Restart Apache.

/etc/init.d/httpd restart

link : http://www.php.ph/2007/12/21/centos-5-eaccelerator-installation/

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Liked it here?
Why not try sites on the blogroll...

Follow

Get every new post delivered to your Inbox.