Install APC on WAMP server

  • SumoMe

The main benefit of APC is to increase the performance of PHP scripts.
How to install APC on WAMP 2.1:
1) Go to
2) Download
3) Copy php_apc.dll to \wamp\bin\php\php5.3.5\ext
4) Enable php_apc extension from WAMP server panel -> PHP extensions

Enable apc extension

5) Open php.ini \wamp\bin\apache\Apache2.2.17\bin and add this:

apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 64M
apc.max_file_size = 10M
apc.stat = 1

6) Restart Wamp server
7) Open this address http://localhost/?phpinfo=1 in your favourite browser
And check for this section:
Phpinfo page apc
If you see that section, then everything is ok and you successfully installed APC extension on your WAMP server.
I add new article for WAMP 64bit with APC, you can found it here 64bit wamp

28 thoughts on “Install APC on WAMP server”

  1. Hello!

    Thx for this post, is really good!

    Could you tell about upgrade intl extension with a newer ICU version (4+)? I use wamp server 2.1 on win7.

    Thanks a lot!

  2. I’m not getting the php_apc option listed with the other extensions. I also tried to add extension=php_apc.dll to the extensions list in php.ini, but that didn’t change anything. I restarted WAMP after each change, but there’s still no “php_apc” option in the extension list and no “apc” anywhere in phpinfo().

    Any ideas?

    1. Go to your \wamp\bin\apache\Apache2.2.17\bin\ directory and find php.ini open it, with your favourite text editor. Search for “Dynamic Extensions” and check is the apc extension enabled, if there is semicolon at the begining of the line, remove it.

      In my case:


      Save the file and restart the WAMP server. Good luck.

  3. i add extension=php_apc.dll line in \wamp\bin\apache\Apache2.2.17\bin\php.ini file under Dynamic Extensions. Restart wamp but still don’t get php_apc.dll in settings.
    shall i need reboot computer. FYI: i use wamp & win 7.

    1. Hello Aminul,

      Did you copy the extension to your php extension folder? Also check your phpinfo page for apc module, not the php extension in wamp menu.
      And from where you get the php_apc.dll and what version is VC6 or VC9 this is important too, because:

      If you are using PHP with Apache 1 or Apache2 you need to use the VC6 versions of PHP

      If you are using PHP with IIS you should use the VC9 versions of PHP

      VC6 Versions are compiled with the legacy Visual Studio 6 compiler

      VC9 Versions are compiled with the Visual Studio 2008 compiler and have improvements in performance and stability. The VC9 versions require you to have the Microsoft 2008 C++ Runtime (x86) or the Microsoft 2008 C++ Runtime (x64) installed

      Do NOT use VC9 version with binaries

  4. Hi, i have followed all your instructions and i have listed apc in wamp but it haven’t showed in the phpinfo, so i guess something is wrong?
    I am using win7 and PHP Version 5.3.9 and Apache Version 2.2.21 with wamp.

  5. Hello Niko,

    I’ve got a Win7 64bit machine, with wamp server 2.2 64bit, php 5.3.9 and apache 2.2.21

    I tried all of the vc9 apc versions listed on the downloads website and none of them works. I can see the apc extension from wamp in the php extensions menu, but it’s not loaded (phpinfo doesn’t show it), and I can’t find any error anywhere..
    Can you think of something ?

  6. have followed instructions to the letter using the WAMP versions above, and i cannot see new extensions. i have added entries to php.ini. there is a pdb in the zip not mentioned in the instructions above… is it needed in the ext directory for apc to work? if so what is it? thanks.

  7. please note that my php.ini file did not have a commented entry for apc_dll and I added it myself. Was this a problem with my php.ini i.e. should it have been there?

    After restarting WAMP processes I cannot delete the apc dll so it looks though it is being held by processes but not showing in WAMP menu…

    You mention: “Also check your phpinfo page for apc module, not the php extension in wamp menu”. Prior to this you have said check the php extension in wamp menu… Little confused here.

  8. ok. had some weirdness going on only became available when i disabled another module (to test the php ini file updates). dont know what that was about nor do i care now. its there, working. many thanks

    1. Hello doogy1st,
      I will try to make new post about wamp 64-bit installation next week and will put link in this post so people with 64-bit system to be able to install APC too.

  9. i want to add php_apc into wamp server but i can’t install it.
    I have same configuration as noted in instructions.
    Please help me.

    Thanks in advance.

  10. Hi My config.

    It is not working for me

    Wamp server 2.4
    Apache version 2.4.4
    Php version 5.4.16

    Give me solution how it works.

    1. Hello,
      could you provide more information so I will be able to help you. From where you download the APC extension. I see that you use php 5.4, the post is for php 5.3 so it is possible not to work if you use the APC extension the I put for download.

Leave a Reply