How to install Zend Optimizer on Linux

If you have followed the instructions on Setting up LAMP (Linux Apache, MySQL, and PHP) and Setting up Webmin correctly, then installing Zend Optimizer will be just as easy as the previous installation.

I will be using the IP address 192.168.0.10 for reference. You must change it to your correct IP or domain for it to work.

1. Download the Zend Optimizer package. On this example, it is version 3.3.3:

wget downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz

2. Extract the file and initiate the installer:

cd /tmp
tar -zxvf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
cd ZendOptimizer-3.3.3-linux-glibc23-i386/
./install.sh

3. On the installer prompt, you must supply the needed information. It may vary from machine to machine:

php5 path = /etc/php5/apache2/
apachectl = /usr/sbin/apache2ctl
apache2 path = /usr/sbin/apache2

4. Edit your php.ini:

nano /etc/php5/apache2/php.ini

Add this line on the very end:

[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

5. Restart the Apache2 server:

/etc/init.d/apache2 restart

6. Using the earlier phpinfo file, point your browser to http://192.168.0.10/phpinfo.php

You should see somewhere in the information:

… with Zend Optimizer …

Maybe you’re interested in Changing your server’s Time Zone.

Leave a Reply

Your email address will not be published. Required fields are marked *