Installing requirements on Windows

From CollectiveAccess Documentation
Jump to: navigation, search

NEEDS MAJOR UPDATE - Notes on installing CollectiveAccess requirements on Windows

With the release of the Microsoft Visual Studio 2008 compiler installation of Apache and PHP have gotten more complicated. Both Apache and PHP are now offered pre-compiled using either the older Visual Studio ("VC6" binaries) or the 2008 compiler ("VC9" binaries). In addition PHP comes in both thread safe and non-thread safe versions.

It is critical that you use binaries from the same compiler. If you use a VC6 Apache with a VC9 PHP strange things will ensue.

What follows is a recipe for a working Apache/PHP/ImageMagick (with PHP Imagick)/MySQL installation on Windows 7 or Windows Server 2008. It may work on other versions of Windows as well. There are certainly other ways to get a working installation, but this is the one that worked for us using the latest VC9 versions of everything.

Step 1: Download the binaries

First we'll download everything that needs to be installed. The links below are to specific versions. Unless otherwise noted you should be able to use the most up-to-date version in place of the version referenced below.

  1. Get Apache version 2.2 (VC9, Win32 with ssl 0.9.8r) from
  2. Get PHP version 5.3.8 (VC9, Win32, Thread Safe) from
  3. Get the latest version of MySQL from As of September 2011 it is 5.5.6.
  4. Get ImageMagick version 6.6.4-1 (Q16, DLL) from Note that this is the last known binary release to use VC9. Newer releases use VC10 and may not work properly with PHP. If there's a bug fix in a later version that you need, it can't hurt to give it a try, but otherwise stick with version 6.6.4-1.
  5. Get the Imagick PHP extension (x86, VC9, Thread Safe) from
  6. In order for ImageMagick to run you'll need to make sure you have the Visual Studio 2008 Redistributable Package, including Service Pack 1, installed. The required installers can be downloaded from:
    1. Base package:
    2. Service Pack 1:
  7. If you plan on using SVN to download the latest CA code, get the latest version of TortoiseSVN from Note that this is not required for an installation, but is handy when dealing with SVN.

Step 2: Install the simple stuff

Step 3: Install Apache

Step 4: Install PHP

Step 5: Install Imagick

Step 6: Testing it out


Personal tools