Zend Optimizer 3.3.0 and Apache 2.x on Windows

I spent the last hour trying to figure this out; installing Zend Optimizer on a Windows 2003 RC2 Enterprise Server running Apache 2.x so that I can install Thyme, a PHP Calendar software, for our office intranet.

I followed all the steps; download the Zend Optimizer for Windows and installed it. Everything seemed to be running fine, but for some reason, the extensions weren’t being properly entered into the php.ini file.

So in case I run into this problem again, or someone else does; here is the solution. This is assuming you are running Microsoft Windows 2003 RC2 Enterprise Server, Apache 2.2.4, PHP 5, and you install most the applications in a *default* location. If they’re not installed in a default location…use the search function to find it.

Do this ONLY if your Zend Optimizer isn’t running. To check if it is running or not, simply make a php document called phpinfo.php (or name it anything you like) and inside put:

<?php phpinfo(); ?>

Then from the web browser, browse to http://your-website-address/phpinfo.php. That should bring up all the details about your PHP installation and what’s running and how it’s running. Do a search (CTRL+F) and type in Zend and you should see:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

If that is all you see, Zend Optimizer IS NOT loaded. The complete thing should read:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies

So the solution to get it to work is: open php.ini file located at C:PHP in Notepad (or some other text editor). Scroll to the very last line and add:

zend_extension_manager.optimizer_ts="C:Program FilesZendZendOptimizer-3.3.0libOptimizer-3.3.0"
zend_extension_ts="C:Program FilesZendZendOptimizer-3.3.0libZendExtensionManager.dll"

This is the call that will activate the Zend Optimizer.

4 thoughts on “Zend Optimizer 3.3.0 and Apache 2.x on Windows”

  1. Pingback: zenddebugger.com

Leave a Reply

Your email address will not be published. Required fields are marked *