Frequently Asked Questions

Help Center Search

Installing Zend Optimizer on Your Linux Virtual Dedicated Server

Print this Article
Comment on this Article
Last Updated: December 15, 2009 8:27 AM

Zend Optimizer is an application that runs files encoded by Zend Guard and enhances the performance of your PHP applications.

To Install Zend Optimizer on Your Linux Virtual Dedicated Server

  1. Download Zend Optimizer for Linux x86 to your root directory.
  2. Use this command to untar the file:
    [root@localhost ~]# tar -xvzpf ZendOptimizer-3.3.9-linux-glibc23-i386..tar.gz
  3. Use this command to copy the appropriate ZendOptimizer.so into the directory that corresponds to your PHP version:
    # cp /root/ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_1_x_comp/ZendOptimizer.so /usr/lib/php/modules/
    You can check the required directory with this command:
    # php -i | grep extension_dir
  4. Use this command to add the appropriate string to your php.ini file:
    # echo "zend_extension= /usr/lib/php/modules/ZendOptimizer.so" >> /etc/php.ini
  5. Restart Apache Web Server.