Zen optimizer acts in a similar way to APC and eAccelerator. It caches the compiled state of PHP scripts, enabling faster execution on consequent requests. To accelerate the performance of PHP scripts, Zen Optimizer also allows us to run scripts encoded by Zend Encoder on the server.
Installing Zend Optimizer
Installing the Zend Optimizer is easier than the other caching solutions, as it comes with a setup wizard.
To install Zend Optimizer follows the steps below:
- Download the appropriate package from http://zend.com/store/products/zend-optimizer.php.
- Decompress the archive, and go into the newly created directory:
tar -xvzf ZendOptimizer-2.5.10a-linux-glibc21-i386.tar.gz
cd ZendOptimizer-2.5.10a-linux-glibc21-i386
- Run the install wizard as root:
./install.sh
Run through the wizard, specifying the necessary paths when prompted.
- At the end, restart Apache.
Removing Zend Optimizer
To remove Zend Optimizer follows the steps below:
- Delete the symbolic link it created for php.ini.
- Restore the backed-up original php.ini file to its former location.
- Restart Apache
The Zend Optimizer will no longer be active. Now we can delete the Zend Optimizer files—the default location is /usr/local/Zend.

