View Complete Thread
  • Re: Need HELP with ZEND OPTIMIZER on 2008 r2 x64 IIS7

    Aug 30, 2011 02:30 PM|GridSouth|LINK

    We had the same issue. The link here has more details. We have installed successfully on Windows 2008 R2.

    Basically, the wincache extension is not compatible with the Zend Guard runtime.

    So, what we did to get it working correctly:

     Install the base PHP and the MySQL Drivers using the Web Platform Installer
    1. Download the ZendGuard Runtime (NOT Zend Optimizer as this only works with PHP 5.2 and earlier)
    2. Unzip the file and place the ZendLoader.dll in your PHP Extensions folder (The default path is C:\Program Files (x86)\PHP\v5.3\ext)
    3. Download the Ioncube Loaders from here.Be sure to get the loader labelled "Windows VC9 (Non-TS) (x86)" as this is the install that the Web Platform Installer uses. Click for a direct download of the Zip file.
    4. Unzip the file and place the ioncube_loader_win_5.3.dll in the PHP Extensions folder as you did for the ZendGuard run time DLL.
    5. Use the PHP Manager to make sure the php_wincache.dll is DISABLED. If you did not install is using the Web Platform Installer, it should not be listed at all.
    6. Manually edit the php.ini file and add the following lines to the very bottom of the file:

      [Ioncube Loader]
      zend_extension = "C:\Program Files (x86)\PHP\v5.3\ext\ioncube_loader_win_5.3.dll"

      zend_extension="C:\Program Files (x86)\PHP\v5.3\ext\ZendLoader.dll"

      NOTE: The path should be the path to the php/ext folder on your server! The order of these lines is important. Don't change them.

    7. Restart IIS.
    8. Test in the PHP Manger by running the "Check phpinfo() option. If successful, you will see the following in the box above the PHP Credits Line:

      This program makes use of the Zend Scripting Language Engine:
      Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
      with the ionCube PHP Loader v4.0.10, Copyright (c) 2002-2011, by ionCube Ltd., and   <----- Shows Ioncube loaded
      with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies  <---- Shows ZendGuard loaded.

    PHP scripts encoded to work with Zend Optimizer may need to be recompiled by the author using the ZendGuard tools.

    Hope this helps