Use the Zend Optimizer with MoWeS Portable

From MoWeS Wiki

Jump to: navigation, search

Some people asked if the Zend Optimizer can be used with MoWeS Portable. For sure it can. Here is a short "How-To":

  1. Get the Zend Optimizer for Windows from http://www.zend.com/products/zend_optimizer
  2. Install the Zend Optimizer using the installer
  3. When the installer asks for the webserver choose apache 2.x
  4. The installer wants to stop your webserver (means MoWeS Portable). This won't work. Just ignore!
  5. When the installer asks for the directories, choose the following:
 PHP Path: x:\path\to\mowes\php5 or x:\path\to\mowes\php4
 Webserver: x:\path\to\mowes\apache2
 Document root: x:\path\to\mowes\www
  1. When the installer has finished open the windows explorer and copy the folder c:\program files\zend\zend optimizer x.x to x:\path\to\mowes
  2. Open the php.ini from x:\path\to\mowes\php4 or x:\path\to\mowes\php5. At the beginning you will find something like that at the begining:
 ;<mowes-comment>
 ; This file was automatically edited by MoWeS 1.1.1
 ; Last edited 29.03.2006/20:35:17
 ; Changed dir x:\old\path\to\mowes\ to x:\path\to\mowes\
 ; MoWeS is software from CH Software (www.chsoftware.net) and published under the GNU GPL
 ;</mowes-comment>
  1. Copy the "x:\path\to\mowes\"
  2. Scroll down to the end of the php.ini. There you find the following lines
 [Zend]
 zend_extension_manager.optimizer_ts="C:\Program Files\Zend\ZendOptimizer-2.6.2\lib\Optimizer-2.6.2"
 zend_extension_ts="C:\Program Files\Zend\ZendOptimizer-2.6.2\lib\ZendExtensionManager.dll"
  1. Change the to
 [Zend]
 zend_extension_manager.optimizer_ts="x:\path\to\mowes\ZendOptimizer-2.6.2\lib\Optimizer-2.6.2"
 zend_extension_ts="x:\path\to\mowes\ZendOptimizer-2.6.2\lib\ZendExtensionManager.dll"

That's it!

If you run a php file with the content

 <?php 
 phpinfo();
 ?>

then you can see that the Zend optimizer is working!