FrontPage eaccelerator

What does it do?
It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated.

How to install eaccelerator?

  • Download the eaccelerator- at
  • unzip the file under temporary directory, unzipped/ , for example.
  • You need php5-dev pack first in order to use "phpize"

    apt-get install php5-dev

  • Once it is done, phpize will be installed in /usr/bin/phpize .
  • execute the below commands at the command prompt unzipped/ .
      # export PHP_PREFIX="/usr"
      # $PHP_PREFIX/bin/phpize
      # ./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
      # make

  • This will generate "" under ./unzipped/modules directory.
  • run

    make install

  • This will copy under the /usr/lib/php5 directory. Im my case, it was installed under 20060613+lfs.


  • Then, copy unzipped/eaccelerator.ini file to /etc/php5/conf.d directory.

    cp unzipped/eaccerlerator.ini /etc/php5/conf.d/eaccelorator.ini

  • Caution : /etc/php5/conf.d directory was available since php was configured with --with-config-file-scan-dir=/etc/php5/conf.d option. If you don't have the directory /etc/php5/conf.d, then copy the below (the content of eaccelerator.ini) in your php.ini file.
      zend_extension="/usr/lib/php5/20060613+lfs/" // You need to change this according to your seeting

  • in php.ini file, put the below line around the extension config lines.

  • Create cache directory under /tmp directory.
     mkdir /tmp/eaccelerator
     chown www(or whatever) /tmp/eaccelerator
     chmod 0700 /tmp/eaccelerator

  • restart apache

    /etc/init.d/apache2 restart

  • Make it sure that the module (.so) was properly installed by looking at phpinfo(); with an web page. The below or similar message will appear in phpinfo(); page.
      This program makes use of the Zend Scripting Language Engine:
      Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
        with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator

  • phpinfo()?
    make a file phpinfo.php under htdocs (or html) directory (something like /var/www), then put the below lines;

  • Then, view this page with a web browser with http://localhost/phpinfo.php URL.

    see more info at

    Valid XHTML 1.0! Valid CSS! powered by MoniWiki
    last modified 2012-05-08 14:46:13
    Processing time 0.0137 sec