Ubuntu Tutorials Copy/Paste tutorials for Ubuntu

26Dec/093

Installing Zend Optimizer

The Zend Optimizer enables you to run Zend Guard encoded files.

1. Download a copy of Zend Optimizer / Guard from the location below and put it into /tmp

http://www.zend.com/en/products/guard/downloads

2. Extract

cd /tmp
sudo tar zxvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

Replace with your actual filename

3. Create a directory to contain Zend optimizer

sudo mkdir /usr/local/lib/Zend

3. Move the Zend optimizer lib to a permanent location

sudo mv ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ZendOptimizer.so /usr/local/lib/Zend/

Your ZendOptimizer directory name may be different since it includes version numbers and platform. I'm using the 5_2_x_comp directory because I have PHP 5.2 installed.

4. Add reference to your php.ini file (sudo pico /etc/php5/apache2/php.ini)

zend_extension = /usr/local/lib/Zend/ZendOptimizer.so
zend_optimizer.optimization_level = 15

5. Restart apache

sudo /etc/init.d/apache2 restart

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • email
  • LinkedIn
  • Live
  • Netvibes
  • Netvouz
  • PDF
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Bookmarks
Comments (3) Trackbacks (0)
  1. Thanks for the great instructions for installing Zend. The (tiny) stumbling point was that there is no specific section for the references in php.ini… they can go anywhere I think!

  2. Excellent little tutorial — much improved over the “manual” provided on the Zend site (which is outdated and inaccurate, to my eye).

    Thanks a bunch!

  3. Hey, great instruction….Keep it up….


Leave a comment


Spam Protection by WP-SpamFree Plugin

No trackbacks yet.