Zend Optimizer - a server module for the PHP interpreter, which allows you to run PHP-scripts encoded with Zend Encoder and Zend SafeGuard Suite.

Before installing it, check if Zend Optimizer is already installed on the server: php -m | grep Zend

Installing Zend Optimizer on CentOS 6.0 for 64-bit (x86_64)

Download the Zend Optimizer distribution package:

wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz  
  • Unpack the downloaded archive: tar xzvf Zend*
  • check the version of PHP by using the command php -v
  • Copy the appropriate ZendOptimizer module into the directory with PHP modules.

For PHP version 5.2

cp ZendOptimizer-3.3.9-linux-glibc23-x86_64/data/5_2_x_comp/ZendOptimizer.so /usr/lib64/php/modules/  
  • Write the path to the ZendOptimizer module in the PHP configuration file:
echo "zend_extension=/usr/lib64/php/modules/ZendOptimizer.so" >> /etc/php.d/zend.ini  
  • Restart the Apache webserver:
    /etc/init.d/httpd restart
  • check the installation of ZendOptimizer:
    php -m | grep Zend
Updated Jan. 2, 2019