cPanel Config

Welcome to cPanelConfig the fastest growing cPanel configuration and troubleshooting guide on the internet. Please take the time and register. We would love to have your contribution to this completely free cPanel resource. We are updating this daily so be sure to visit us on a regular basis.

How to install Eaccelerator

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5 out of 5)
Loading ... Loading ...

Posted by admin

What is Eaccelerator?
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.

Install instructions

  1. Login as root
  2. Download Eaccelerator
  3. wget http://bart.eaccelerator.net/source/0.9.5.2/eaccelerator-0.9.5.2.zip

  4. Extract and move into the directory
  5. unzip eaccelerator-0.9.5.2.zip
    cd eaccelerator-0.9.5.2

  6. Locate where php is
  7. which php

    This should return something like: /usr/local/bin/php
    We have to remember the location of php

  8. Create configuration files
  9. phpize

  10. Compile Eaccelerator
  11. ./configure –enable-eaccelerator=shared –with-php-config=/usr/local/bin/php-config
    make
    make install

    The “make install” commnand will return the location of the eaccelerator.so extention please note the location. You will need this later.

  12. Install Eaccelerator into php.ini
  13. This can be done as a Zend extension or as a PHP extention.
    I personally recommend installing it as a Zend extension.
    You will have to first locate php using the locate command

    locate php

    This will usualy return /usr/local/Zend/etc/php.ini on a server that has Zend optimizer installed.
    Now we will edit php.ini and add the Eaccelerator extension.

    pico /usr/local/Zend/etc/php.ini

    Scroll down to the buttom and add the fallowing before the lines about the zend optimizer (They start with [Zend])

    zend_extension=”/eaccelerator_location/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_max=”0″
    eaccelerator.shm_ttl=”0″
    eaccelerator.shm_prune_period=”0″
    eaccelerator.shm_only=”0″
    eaccelerator.compress=”1″
    eaccelerator.compress_level=”9″

  14. Restart Apache
  15. If you done everything it’s time to restart Apache

    service httpd restart

  16. Test to see if everything is ok
  17. php -v

    If you see something like you are all done.

    with eAccelerator v0.9.5.1, Copyright (c) 2004-2006 eAccelerator, by eAccelerator

Share this: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Slashdot
  • StumbleUpon
  • Netvouz
  • description
  • ThisNext
  • MisterWong
  • Wists
  • De.lirio.us
  • Furl
  • MyShare
  • Smarking
  • Technorati
  • YahooMyWeb

If you enjoyed this post, make sure you subscribe to my RSS feed!

3 Responses to “How to install Eaccelerator”

  1. Thats a great article, the only one that worked for me, thanks!!!

  2. Wow that was simple.Thanks!!

  3. Don’t forget, if you’re running cPanel, you can easily install eAccelerator by recompiling Apache/PHP.

    At the command line, run:
    # /scripts/easyapache

    By the way, I love the site. Keep the articles coming. :)

Leave a Reply