PHP Extension eAccelerator

Created by: Lester Caine, Last modification: 11 Jun 2011 (15:34 BST)

eAccelerator project

eAccelerator is a free open-source PHP accelerator & optimizer. Currently running 0.9.6.1 from http://bart.eaccelerator.net/source/0.9.6.1/
Current code is also available from the eaccelerator SVN repository

Step 1. Compile Package

Copy the current source code to {home}/Install/eaccelerator and run the compile scripts to process it
Additional notes are available from the project wiki

Step 2. Configure INI File

To configure extension on SUSE setup create an ini file - eaccelerator.ini and save to the /etc/php5/conf.d folder on the windows setups this is now duplicated in ../php5/conf/extras.

Current setup can be now found on the exquirysolve site.

Step 3. Creating cache directory

One last very important step is creating the cache directory that you configured in the previous step. The default value is /tmp/eaccelerator It's easy because it's writable to everyone, but it isn't very smart because on a lot of systems this directory is cleaned on reboot. A better place would be /var/cache/eaccelerator. Create the directory and make sure it's writable for the user eAccelerator runs under (usually the user which you webserver runs as).

A safe bet is making it world writable. A safer and cleaner way would be to change the owner of the directory to the same user PHP runs as (most of the time the same user as Apache) and set 0644 permissions.

The lazy way:

mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator