PHP.ph

21 Dec, 2007

CentOS 5: Eaccelerator Installation

Posted by: aqua In: Linux

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

Tags: , ,

11 Responses to "CentOS 5: Eaccelerator Installation"

1 | PHP.ph » CentOS 5: Eaccelerator Control Panel

January 6th, 2008 at 12:07 am

Avatar

[...] CentOS 5: Eaccelerator Control Panel This is a continuation of Eaccelerator Installation topic here. [...]

2 | hello, hellm » Blog Archive » Installing eaccelerator on a MediaTemple DV 3.5 Virtual Server

February 13th, 2008 at 3:28 am

Avatar

[...] followed these instructions: http://www.php.ph/2007/12/21/centos-5-eaccelerator-installation/ But with one exception: don’t extract the eaccelerator tar to /tmp, as it won’t let you [...]

3 | moshe rosenberg

December 26th, 2008 at 6:29 am

Avatar

i did all the above steps and now
this is what i got

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/eaccelerator.so’ – /usr/lib64/php/modules/eaccelerator.so: cannot open shared object file: No such file or directory in Unknown on line 0

4 | terran

April 7th, 2009 at 2:41 am

Avatar

hey, thank you for this tutorial. I have succesfully install eaccelerator to my vps. I have question bout the directory permission, is it OK to leave it 777 or should I change it to 644?

Anyway thanks for the tutorial again :D Please email me k.

5 | terran

April 7th, 2009 at 2:43 am

Avatar

or 755?

6 | Simon’s Work Blog » How to Digg proof your Wordpress blog

August 7th, 2009 at 5:36 am

Avatar

[...] installed this plugin with this guide from php.ph and you can grab the source code and documentation from the eAccelrator [...]

7 | David

February 12th, 2010 at 8:35 pm

Avatar

Worked perfectly using more recent version too: http://bart.eaccelerator.net/source/0.9.6/

Many thanks for taking the time to put this together

9 | Mi última pesadilla: Optimizar el VPS para Wordpress

August 6th, 2010 at 2:12 pm

Avatar

[...] CentOS 5: Instalación de Eaccelerator [...]

10 | Installing nginx 1.0.0, php, mysql, ftp, disk + memory (ram) caching On Centos 5.5 - r00t.gr

April 25th, 2011 at 8:38 pm

Avatar

[...] go the instructions from here: http://www.php.ph/2007/12/21/centos-5-eaccelerator-installation/. I rewrite them here so that the article is complete. yum install php-devel wget [...]

11 | r00t.gr

April 25th, 2011 at 8:41 pm

Avatar

Thank you for your info, worked great.

I used these instructions for a complete nginx 1.0.0, php, mysql, ftp, disk + memory (ram) caching On Centos 5.5 article. Anyone that is interested take a look.

http://www.r00t.gr/2011/04/installing-nginx-php-mysql-ftp-disk-memory-ram-caching-on-centos-5-5/

Thanks

Comment Form

Categories

Links

PHP.ph is owned and managed, since 2002 by:
Dr. Jesus Lecitona
Visit his blogs about dentistry:
Denture
Dentures
Dental Implants Cost

About PHP.ph

Linux Apache MySQL PHP