Revision of eAccelerator from Mon, 04/05/2010 - 16:54

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.6/eaccelerator-0.9.6.tar.bz2
    tar jxf eaccelerator-0.9.6.tar.bz2
    cd eaccelerator-0.9.6
  2. Prepare the source code for compiling as a PHP extension using phpize:, then configure, build and install it:
    phpize
    ./configure
    make
    make install
  3. Install it as a PHP extension in /usr/local/lib/php.ini:
    extension="eaccelerator.so"
    eaccelerator.shm_size="16"
    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"

    You will also likely have modify >/usr/local/lib/php.ini and adjust the default value of extension_dir = "./":

    extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
  4. Create the cache directory:
    mkdir /var/cache/eaccelerator
    chown nobody:nobody /var/cache/eaccelerator
    chmod 0644 /var/cache/eaccelerator
  5. Restart your web server:
    svc -t /service/apache
  6. 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.6, 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