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 http://www.serverbuddies.com/files/ZendOptimizer-3.3.0a-linux-glibc21-i386.tar.gz
  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:

/usr/local/Zend

#Confirm the location of your php.ini file:

/etc

#Are you using the Apache webserver?

Yes

#Specify the Apache configuration directory:

/etc/httpd/conf

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

Choose “Yes” to proceed.

#Specify the Apache bin directory:

/usr/sbin

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/ZendExtensionManager.so
  7. zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

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 virtDomain.sh and editVirtDomain.sh and upload it to /etc/appliance/customization

  1. cd /etc/appliance/customization
  2. wget http://download.swsoft.com/ensim/download/pro/linux/kb/2800/virtDomain.sh
  3. wget http://download.swsoft.com/ensim/download/pro/linux/kb/2800/editVirtDomain.sh

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

6.

  1. chmod 755 /etc/appliance/customization/virtDomain.sh
  2. chmod 755 /etc/appliance/customization/editVirtDomain.sh

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.