What is Zen Optimizer?
Zend Optimizer is a tool that boosts the PHP performance by going over the intermediate code generated by the standard Zend run-time compiler and optimizing it for faster execution. In addition, it runs the files encoded by the Zend Guard, while enhancing the running speed of PHP applications. Basically it is a PHP addon that offers caching to improve the website loading time, the speed and performance of the website can be increased upto 40% by caching frequently viewed portions of PHP pages. Zend Encoder also is useful for encoding PHP files to protect source code.
Use of zend optimizer has a positive impact on the factors like the page load times and server processor utilization.
For smooth functioning of the Zend optimizer, the basic system requirements mentioned below are necessary:
1. Zend Optimizer is installed on a supported operating system
2. Zend Optimizer is installed on a supported version of PHP 4 or PHP 5.
3. A web server is installed on the machine on which the PHP is running
Installing Zend Optimizer
The Zend Optimizer is a free package that can be downloaded online
In order to download and install the Zend Optimizer:
1. Log in or register with your Zend account. The Zend Optimizer – Free Download page opens.
2. Select the Optimizer version that corresponds with the platform system you use and clink on “Download Now”
3. Select the Save option and save the selected file on to your local system
After this point, the installation procedure differs in accordance with the operating system on which the zend optimizer has to be installed
Installing Zend Optimizer On Windows
Double click on the package ZendOptimizer-x.x.x-windows-i386.exe. This will open the Zend optimizer shield window.
Follow the instructions given in the Installer. These instructions define the basic system configurations required for installing the Zend Optimizer such as the Web Server in use and the location of the php.ini.
After following the steps mentioned above, zend optimizer will be installed on the windows operating system.
Installing Zen optimizer on the Unix variants
1. Open a terminal window and change dir to the directory in which the Zend Optimizer package was saved. Use the following command to untar the package:
gunzip -c <package name> | tar xf –
2. From the extracted package’s directory, type the following command:
The installer will be launched
3. Follow the instructions given in the installer. These instructions define the basic system configurations required for installing the Zend Optimizer, such as the Web Server in use and the location of the php.ini.
4. In case because of any reason, the graphical installation does not start or if it is illegible, use this command:
This is useful on the low-end terminals such as while installing on a remote server via SSH/Telnet.”. The text only installation starts after this.
The Zend Optimizer will not run if the following PHP settings are enabled:
In case because of any reason, the graphical installation does not start or if it is illegible, use this command:
Make sure that your PHP was compiled in non-debug mode – You can check this by looking at the top part of the phpinfo() function output and checking “Debug Build” row (ZEND_DEBUG in older PHP versions) – it should say “no”.
Check that your PHP was compiled in ZTS mode for Windows and non-ZTS mode for UNIX. You can check this by looking at the top part of the phpinfo() function and checking “Thread Safety” row – it should say “disabled” for Unix and “enabled” for Windows.
Check that your PHP was compiled without the Enable Versioning setting. This can be checked by looking at the top part of the phpinfo() function check if the row named “–enable-versioning” exists in the Configure Command section – if it does exists in the PHP should be compiled without this option.