Revision of eAccelerator from Mon, 12/21/2009 - 13:24

Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.

eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.

Installation

  1. Download the latest version:

    cd /extra/src
    wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2
    tar jxf eaccelerator-0.9.5.3.tar.bz2
    cd eaccelerator-0.9.5.3
  2. Prepare the source code for compiling as a PHP extension using phpize:, then configure and build it
    phpize
    ./configure
    make
  3. Create the cache directory:
    mkdir /tmp/eaccelerator
    chown nobody:nobody /tmp/eaccelerator
    chmod 0644 /tmp/eaccelerator
  4. Install it:
    make install
    cd /usr/local/lib/php/extensions
    ln -s no-debug-non-zts-20060613/eaccelerator.so eaccelerator.so
  5. Install it as a PHP extension in /usr/local/lib/php.ini:
    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"

    You will also likely have to change extension_dir = "./" in >/usr/local/lib/php.ini to:

    extension_dir = "/usr/local/lib/php/extensions"
  6. Restart your web server:
    svc -t /service/apache
  7. Verify that it works:
    php -v

    And look for code similar to:

    Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
        with eAccelerator v0.9.5-beta2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator

Recent Updates

  • 7 months 1 week ago
  • 7 months 1 week ago
  • 7 months 1 week ago
    php 8.x
  • 7 months 1 week ago
    10.6.7
  • 7 months 1 week ago
    Drop Centos 5/6 stuff