wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2
tar xjf eaccel*.tar.bz2
cd eaccel*
phpize
./configure
make
make install
cp control.php /var/www/eaccelerator.php
Edit control.php to change the $user and $pw settings.
in your php.ini file, add this:
zend_extension="/usr/lib/php5/20060613+lfs/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"
eaccelerator.allowed_admin_path="/var/www/eaccelerator.php"
Create cache directory:
mkdir /var/cache/eaccelerator
chown www-data:www-data /var/cache/eaccelerator
chmod u=rwx,g=rwx,o= /var/cache/eaccelerator
Restart apache:
/etc/init.d/httpd restart
No comments:
Post a Comment