Installing PHP extensions on Windows Installing PHP extensions on Windows windows windows

Installing PHP extensions on Windows


For all peoples coming here to download the dll extension files.

This is the link to the PHP extension download link http://windows.php.net/download/

And this is a list of PHP extensions to download: http://pecl.php.net/package-search.php

For core extensions, or if you cant find any on pecl.php.net, download PHP from a zip http://windows.php.net/download/ and look inside of /ext and copy them to your local php /ext folder.


The only way I can think of is: manually. Yeah, I know, but this is pretty easy comparatively.

If you have the compiler, then you can at least compile an extension if you have the source. Otherwise you're stuck with trying to locate a binary distribution (like me).

Here's what you do, from what I understand:

  1. Put the extension library folder under PHP's install path. On my computer this is C:\xampp\php\ext. Search in your PHP.ini for "extension_dir" to find what yours is.
  2. Edit php.ini to load the extension.
    1. Find ; Dynamic Extensions ;.
    2. Add line extension=my_lib.dll

This should do it. Otherwise you should probably search for an in-depth guide on manual installation.


For memcache you will need the memcache server located here -> http://code.jellycan.com/memcached/ and download the win32 binary

Never used APC :P I use eAccelerator0953_5.2.6 to cache the code