E N D
Description • eAccelerator is a free open-source PHP accelerator & optimizer. 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. • eAccelerator was born in December 2004 as a fork of the Turck MMCache project. TurckMMCache was created by Dmitry Stogov and much of the eAccelerator code is still based on his work. • eAccelerator stores compiled PHP scripts in shared memory and executes code directly from it. It creates locks only for a short time, while searching for a compiled PHP script in the cache, so one script can be executed simultaneously by several engines. Files that can't fit in shared memory are cached on disk only. • The latest release, 0.9.6.1, features support for PHP 5.3 and also works with PHP 5.1 and 5.2. The previous 0.9.5 branch supports PHP 4 and all PHP 5 releases including 5.2. In older releases, the encoder will only work with PHP versions from the 4.x.x branch.
Installation Step 1 Compiling eAccelerator • export PHP_PREFIX="/usr" • $PHP_PREFIX/bin/phpize • ./configure --enable-shared --with-php-config=$PHP_PREFIX/bin/php-config • make NOTE: You must specify the real prefix where PHP is installed in the "export" command. It may be "/usr" "/usr/local", or something else.
Installation Step 2 InstallingeAccelerator • make
Instalation Step 3 Configuring eAccelerator eAccelerator can be installed both as Zend or PHP extension. For eaccelerator > 0.9.1, if you have /etc/php.d directory, you should copy eaccelerator.ini inside and modify default value if you need. If not, you need to edit your php.ini file (usually /etc/php.ini). To install as Zend extension: zend_extension="/usr/lib/php5/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_ttl="0" eaccelerator.shm_prune_period="0" eaccelerator.shm_only="0" If you use thread safe build of PHP you must use "zend_extension_ts" instead of "zend_extension". To install as PHP extension: 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_ttl="0" eaccelerator.shm_prune_period="0" eaccelerator.shm_only="0"
Installation Step 4 Creating cache directory • mkdir /tmp/eaccelerator • chmod 0777 /tmp/eaccelerato