Install eAccelerator in Debian 6


Install eAccelerator in Debian 6

1. Download and Extract  eAccelerator package

    # cd /tmp
    # wget http://www.debiantutorials.com/static/eaccelerator-0.9.6.1.tar.bz2
    # tar -xvjf eaccelerator-0.9.6.1.tar.bz2

2. Prepare for compiling it

    # apt-get install php5-dev make
    # cd eaccelerator-0.9.6.1
    # phpize

3. To Compile

    # ./configure
    # make
    # make install

4. Add configuration for eAccelerator

    # vi /etc/php5/conf.d/eaccelerator.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"

5.Create the cache directory

   # mkdir -p /var/cache/eaccelerator
   # chmod 0777 /var/cache/eaccelerator

6. Restart Apache2

    # /etc/init.d/apache2 restart



This entry was posted by Arun Ghosh. Bookmark the permalink.