Wednesday, 30 September 2015

Install Zend Optimizer On Redhat Enterprise Linux (Rhel)

If you are setting up a web server then having Zend's "Optimizer" for your server is a necessary evil for just about any client who uses PHP.


Sometimes it can be tricky to install, I will guide you through the process.


Instructions


1. SSH and connect to your box as your wheel group user, and then "su -" to root.


2. Download the file you need from Zend directly. This page requires you to setup a free account with them to access the download page.


http://www.zend.com/free_download/optimizer


3. Once you have the file, copy it to your ~ directory on the linux server.


4. If you have a GZ file:


gzip -d ~/ZendOptimizer-3.3.0-linux-glibc21-i386.tar.gz


Now that you have a tar (or started with a tar)


tar -xvf ~/ZendOptimizer-3.3.0-linux-glibc21-i386.tar


5. Change directory and then run the installer script.


cd ~/ZendOptimizer-3.3.0-linux-glibc21-i386


./install.sh


6. make sure that the end of your php.ini file looks like this - if not change it (this is assuming your installing version 3.3.0)


[Zend]


zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0


zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0


zend_optimizer.version=3.3.0


zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so


zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so


7. Save and close the file if you change it. Then restart Apache to pick up the changes.


/sbin/service httpd restart


8. Now verify from the php CLI that its installed and working.


php -v


You should see something similar to


PHP 5.2.3 (cli) (built: Jun 7 2007 08:59:02)


Copyright (c) 1997-2007 The PHP Group


Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies


with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies


with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies

Tags: local Zend, Zend Optimizer, Zend Technologies, ZendOptimizer-3 0-linux-glibc21-i386, 1998-2007 Zend, 1998-2007 Zend Technologies