PHP APC for Windows

Thursday 6th September, 2012 — 9 Comments

I have compiled the source of PHP APC 3.1.13 Beta for Windows against various versions of PHP 5.4 including both PHP 5.4.4 and PHP 5.4.6. The .dlls where compiled on Windows 7 64bit and I have confirmed the first as working on Windows 7 64bit running XAMPP 1.8.0 which has PHP 5.4.4 and Apache 2.4.2. The LAMP stack is a 32bit build and so is the APC module – so it should run on 32bit Windows systems. Give them a test and leave a comment with success/failure and the system you tried. Requests welcome.
Please refer to my PHP Extensions Page for a complete list of downloads at.

To install you need to copy php_apc.dll in to the php/ext directory. On my system, using XAMPP, I copied it to:

Copy the APC admin script apc.php in to a folder accessible to your webserver, in my case I copied it to:

View apc.php in your browser by going to e.g. http://localhost/apc.php, it should say “No cache info available. APC does not appear to be running.”

Open up your php.ini file, on my system it is located at D:\xampp\php\php.ini
At the very bottom of the file append the following three lines:

Save the file. Restart your web server (I clicked on STOP and then START in the XAMPP control panel). Next reload the APC admin script by visiting or refreshing http://localhost/apc.php you should see a stats page load up.



9 responses to PHP APC for Windows

  1. Tried to use on a 32-it windows system but get an error when I reload the webserver,

    PHP Startup: Unable to load dynamic library ‘c:\xamp\php\ext\php_apc.dll’ – The specified procedure could not be found.


  2. Hi David. Not sure. I was wondering if it requires the Microsoft Visual C++ Redistributable to be installed. Download is here for 64bit, otherwise google will find 32bit:

  3. Can’t run on Win7 x64, same ‘PHP Startup: Unable to load dynamic library’. is installed.

  4. Thanks for providing this DLL, Gabriel!
    I just installed it successfully on Win2k8 R2 64, Apache 2.4.3, PHP 5.4.8 VC9 threadsafe.
    First tests with a complex website under TYPO3 (frontend and backend) look promising and pass without problems.

    Hint: Your installation steps (both here and in the included readme file) are missing the instruction to add extension=php_apc.dll
    to php.ini.


  5. links are not working…
    it’s a shame

  6. Hi there.

    Thanks for reporting this.

    It’s a DNS problem. I have made a DNS change that should fix this but it may take up to 24 hours to take effect and start working for everyone.

    Many thanks


  7. Does not seem to work on Windows 7 x64 with WAMP (PHP 5.4.12)

Leave a Reply


Text formatting is available via select HTML. <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>