ViArt - PHP Shopping Cart
Select your currency:
American DollarBritish Pound
2.1.2. Zend Optimizer
Index Next
What is Zend Optimizer and why is it used in ViArt?


Some of ViArt's files have been processed with an application called Zend Encoder. These files will not be executed without Zend Optimizer being installed and configured correctly on your Web Site's Host Server.

Zend Optimizer can decode and execute 'optimised' files with greatly improved performance when compared to standard PHP files.

We use Zend optimisation primarily to provide you with:
  • Improved performance: There is a very complex and sophisticated PHP structure which gives ViArt its power, speed and flexibility. When ViArt is running, there are a great many operations being carried out to create what you see in your web browser. We have found that by compiling our files with Zend Encoder we can greatly improve the speed at which these operations are performed, thus creating a faster page rendering time, and a more responsive web site.

  • Safety: The files that govern Viart's underlying framework i.e. the file which hold certain 'protected information' and the other files we would not expect customers would need to modify, are processed with Zend Encoder.
Since Viart's whole reason for being is to allow customization, we have not encoded all of Viart's files; only those files which we feel will protect our intellectual property have been optimized. Any files pertaining to the look and feel of the interface: Style Sheets, HTML, layout files, shopping cart messages and system function variables are all open to alteration in any way you wish.

We would estimate that 97% of Viart is 'open' for modification in any way you choose.

How to install Zend Optimizer

The Zend Optimizer is a fully free package that can be downloaded from zend.com. Click here for the latest version of Zend Optimizer. To download and install the Zend Optimizer, please do the following steps:

  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 select “Download Now”. The File Download dialog opens.
  3. Choose the Save option and save the selected file to your local system.

From this point the installation instructions differ according to the operating system on which you would like to install the Zend Optimizer, namely:

To install the Zend Optimizer on Windows:
  1. Double click on the package ZendOptimizer-x.x.x-windows-i386.exe The Optimizer Install Shield opens.
  2. Follow the instructions in the Installer. These instructions define the basic system configurations necessary for installing the Zend Optimizer such as the Web Server in use and the location of the php.ini.

You can now jump to the section: Installation Verification, page 5 for instructions on how to confirm the Zend Optimizer was successfully installed.


To install the Zend Optimizer on UNIX Variants:
  1. Open a terminal window and change dir to the directory in which the Zend Optimizer package was saved. To untar the package use the command: gunzip -c | tar xf -
  2. From the extracted package's directory, type the following command: ./install. The installer is launched
  3. Follow the instructions in the installer. These instructions define the basic system configurations necessary for installing the Zend Optimizer, such as the Web Server in use and the location of the php.ini.
  4. If for some reason, the graphical installation will not start or is illegible, use the command: ./install-tty which is useful on low-end terminals such as when installing on a remote server via SSH/Telnet.". The text only installation starts

Important note: To install or uninstall Zend Optimizer, you must be logged in with Administrator/root permissions.

How to check that Zend Optimizer is installed

Please make sure that Zend Optimizer is properly installed. To check this on your web server, just run a file like test.php that contains only 1 line:
<?php phpinfo();?>
Then look at the output information and try to search a block of parameters like on this picture:

http://www.viart.com/images/manual/Zend_Optimizer_installed.gif

If it is not there, it means that Zend Optimizer is not installed. Please check your php.ini file whether it contains settings like:

[Zend]

zend_extension_manager.optimizer_ts="C:\Program Files\Zend\ZendOptimizer-3.2.2\lib\Optimizer-3.2.2" zend_extension_ts="C:\Program Files\Zend\ZendOptimizer-3.2.2\lib\ZendExtensionManager.dll"

Most common questions

My Web Host doesn't have Zend Optimizer, what should I do?

Zend Optimizer is a completely free application: it costs nothing to install and run it on your server.

If you have your own web server and you have "root administrator permissions", you will be able to download Zend Optimizer from the above link and install it without issue.

In most cases where you are relying on another company to host your site, your hosting company's Technical Support will carry out this operation for you, if indeed Zend Optimizer is not supported already.

Unfortunately, if your web host refuses to install Zend Optimizer, you won't be able to run ViArt Shop on their server. In this event we would recommend using ViArt's Web Hosting services, details of which can be found here.

How to enable Zend Optimizer?

To enable Zend Optimizer is to check whether all settings are set correctly. Here are the correct settings for C:\xampp\apache\bin\php.ini:

[Zend] zend_extension_ts = "C:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll"
zend_extension_manager.optimizer_ts = "C:\xampp\php\zendOptimizer\lib\Optimizer"
zend_optimizer.enable_loader = 1
zend_optimizer.optimization_level=15

After saving changes in the php.ini please restart the Apache web server.

Are the PHP and Zend Optimizer versions you are using compatible?

Please, refer to the Zend Optimizer product page for the detailed information. We recommend to use Zend Optimizer 3.2 or later for PHP 5.x and Zend 2.6.2 - for PHP 4.2.x.
Index Next
ViArt - PHP Shopping Cart