The following post will explain HOW-TO install Zend Optimizer on a Ensim PRO server and have it enabled for the current and new domains.

1. Download Zend Optimizer.

  1. cp /etc/php.ini /etc/php.ini.backup
  2. cd /usr/local/src
  3. wget
  4. tar zxvf ZendOptimizer*
  5. cd ZendOptimizer*
  6. ./install

You’ll be asked the following questions, answer them with the following:

#Specify the location where to install Zend Optimizer:


#Confirm the location of your php.ini file:


#Are you using the Apache webserver?


#Specify the Apache configuration directory:


#The install script should now detect the right Version of PHP.

Choose “Yes” to proceed.

#Specify the Apache bin directory:


After that, your php.ini is automatically relocated to /usr/local/Zend/etc and a symlink is created.

#Do you want to restart Apache Webserver

Choose “No”.

#Restart Apache

  1. service httpd restart

Zend Optimizer should be fully installed by now.
After installing Zend Optimizer copy it to the high security site:

  1. cp -r /usr/local/Zend/ /home/virtual/site#/fst/usr/local/Zend/

Now lets load it in:

  1. pico -w /home/virtual/site#/fst/etc/php.ini

On the bottom paste this:

  1. [Zend]
  2. zend_optimizer.optimization_level=15
  3. zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0
  4. zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0
  5. zend_optimizer.version=3.3.0a
  6. zend_extension=/usr/local/Zend/lib/
  7. zend_extension_ts=/usr/local/Zend/lib/

Save the file and exit.

2. Once you save that file, create tar file using following command.

# tar cf virtDomain.tar /usr/local/Zend (Assuming that Zend has been installed at default location - /usr/local/Zend)

3.Copy this tarball to /etc/appliance/customization

4.Download the custom script named and and upload it to /etc/appliance/customization

  1. cd /etc/appliance/customization
  2. wget
  3. wget

Note : you need to replace Zend Extension part with one copied from /usr/local/Zend/etc/php.ini in the attached scripts.


  1. chmod 755 /etc/appliance/customization/
  2. chmod 755 /etc/appliance/customization/

Now all new domain created on server with any security level will be Zend enabled. If you want existing domain with high security to be zend enabled then you just need to re-save the site from Webppliance.

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.