Installing Zend Optimizer on CentOS 6

Guide to deploying the server module for running encoded PHP scripts.

Zend Optimizer is a free server-side application that enables the execution of PHP scripts encoded by Zend Guard. It also improves application performance by optimizing code before execution.

Preliminary check

Before proceeding with the installation, verify whether the module is already active on the server using the following command:

php -m | grep Zend

Installation process (for 64-bit systems)

1. Downloading the distribution: Use wget to retrieve the package from the official source:

wget [http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz](http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz)

2. Extracting the archive:

tar xzvf ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz

3. Verifying the PHP version:
Zend Optimizer 3.3.9 is compatible with PHP versions up to 5.2.x. Check the current version by running:

php -v

4. Copying the module:
Move the appropriate module file to the PHP extensions directory. For PHP 5.2, use the following command:

cp ZendOptimizer-3.3.9-linux-glibc23-x86_64/data/5_2_x_comp/ZendOptimizer.so /usr/lib64/php/modules/

5. Configuring PHP:
Register the extension path by creating or updating the configuration file:

echo "zend_extension=/usr/lib64/php/modules/ZendOptimizer.so" >> /etc/php.d/zend.ini

6. Restarting the web server:
Restart Apache to apply the new configuration:

service httpd restart

Confirming the installation

To ensure the module is loaded correctly, check the PHP module list again:

php -m | grep Zend

The output should now include Zend Optimizer and Zend Extension Manager.

Key considerations

  • Compatibility: Zend Optimizer 3.3.9 is specifically designed for PHP 5.2 and older. For PHP 5.3 or later, Zend Guard Loader must be used instead.
  • Architecture: Ensure the package architecture matches your operating system (x86_64 for 64-bit environments).

Help

If you have any questions or need assistance, please contact us through the ticket system — we're always here to help!

Need help?Our engineers will help you free of charge with any question in minutesContact us