Debian Tutorials

Debian Tutorials


Step by step tutorials showing you how to install and configure various applications and services on Debian based Linux distros.

October 2024
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  

Categories


Installing Zend Optimizer

Ástþór IPÁstþór IP
Notice

This tutorial is for older Debian versions and may not work for current versions. Please refer to the links below to find a newer tutorial.

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
tar zxvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

Replace with your actual filename

3. Create a directory to contain Zend optimizer

mkdir /usr/local/lib/Zend

3. Move the Zend optimizer lib to a permanent location

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 (pico /etc/php5/apache2/php.ini)

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

5. Restart apache

/etc/init.d/apache2 restart

Comments 18
  • LordRaven
    Posted on

    LordRaven LordRaven

    Author

    works fine, thanks a lot!


  • My First CMS
    Posted on

    My First CMS My First CMS

    Author

    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!


  • Junni
    Posted on

    Junni Junni

    Author

    Thanks for this tutorial, but it doesn’t work on my Debian server (64bit). I followed the 5 steps as described, but I get an “exit signal Segmentation fault (11)” in the apache log after restart.

    No other modules are installed. APC is running though.

    Any idea?


  • Junni
    Posted on

    Junni Junni

    Author

    After disabling APC, Zend Optimizer and the webserver were running just fine.


  • aip
    Posted on

    aip aip

    Author

    Thanks Junni. Looks like you cannot have both APC and Zend Optimizer running at the same time.

    -aip


  • Travis Sisti
    Posted on

    Travis Sisti Travis Sisti

    Author

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

    Thanks a bunch!


  • derH
    Posted on

    derH derH

    Author

    THANK YOU!
    problem solved. the problem as that my downloaded version from zend did not contain the 5.2-version. i do not know why. i was am verzweifeln, but your tut did it! THANX!


  • Vishnu Ugale
    Posted on

    Vishnu Ugale Vishnu Ugale

    Author

    Hey, great instruction….Keep it up…


  • bvn
    Posted on

    bvn bvn

    Author

    It does not work and I do not know, what is it APC and how to disable APC.


  • Wolfsrudel
    Posted on

    Wolfsrudel Wolfsrudel

    Author

    APC = Advanced Php Cache

    Zend has it’s own compressing-method and is not compatible with APC.


  • Sathees
    Posted on

    Sathees Sathees

    Author

    Very good help. Handy reference site for Zend optimizer installation. Thank you


  • nehz
    Posted on

    nehz nehz

    Author

    I followed so many isntructions I did exactly as you’ve said and I still cannot get it to work.
    I have a script which tells me I need zend opimizer v.3.0.0 or higher.

    phpinfo (); shows
    This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans

    As you can see, it still shows version 2.3.0 — I have no idea where it is
    showing this and how to get rid of it? How do I fix this…


  • Shopfreelancer
    Posted on

    Shopfreelancer Shopfreelancer

    Author

    Thanks! This worked like a charm for me (although I had to downgrade my PHP to 5.2 first…)


  • ramesh
    Posted on

    ramesh ramesh

    Author

    what can i say!! thank u very much…


  • Alexius Diakogiannis
    Posted on

    Alexius Diakogiannis Alexius Diakogiannis

    Author

    Very good instructions, nice work mate


  • Paolo
    Posted on

    Paolo Paolo

    Author

    Easy and helpful, thanks!


  • codet
    Posted on

    codet codet

    Author

    how in xampp ? my os ubuntu 10.10 and i instaling xampp 1.7.1 on ubuntu


  • CheckFire
    Posted on

    CheckFire CheckFire

    Author

    After pulling what little hair I have left out I found your instructions.
    Thank You