Install APC on 64bit WAMP server

  • SumoMe

I’ve been getting a lot of requests from users to make new post for WAMP server 64bit with APC extension. And so here it is.

First you must go to Wamp server home page. For this tutorial I choose to use this WAMP server with this options:

  • WAMPSERVER (64 BITS & PHP 5.3) 2.2E
  • Apache 2.2.22
  • Mysql 5.5.24
  • PHP 5.3.13
  • XDebug 2.1.2
  • XDC 1.5
  • PhpMyadmin
  • SQLBuddy 1.3.3
  • webGrind 1.0

The installation of the WAMP server is easy and I will not explain how to do it.Now lets go and download the apc extension that will work for us. Go to this site and download apc extension Download APC extension. Be careful which one you choose, because there is a lot of APC extensions. First pick that one that is appropriate for your php version. In my case that is PHP 5.3. After that you must choose thread safe or not thread safe APC extension to pick for download.
Now click on your wamp icon and click on Localhost page at the top of the menu. Your browser will open and will open localhost page, find phpinfo() link and click on it. You will be able to see your configuration, find this option “Thread Safety“. If it is enabled then you need Thread safe version of APC extension. So we need this apc extension for download:
APC 3.1.14 beta for PHP 5.3 03/01/2013 53 KB APC
If you want to see more info click on more href to see more info otherwise just click download. Now we have the extension and must put it in the extension folder for php extensions. In my case the folder path is: C:\wamp\bin\php\php5.3.13\ext. Now you need to enable the apc extension. There is two ways to do that:

  • Left click on wamp server icon -> PHP -> PHP extensions and click on php_apc if there is not check mark. Your WAMP server will restart after refresh PHP info page and search for the APC section.
  • Second way to enable php extensions is to open your php.ini file, but be careful the choose correct one. There is one in the php folder and one in the apache folder. Use the second one, which can be found here C:\wamp\bin\apache\apache2.2.22\bin\php.ini. Search for “Windows Extension” at the end of the section add this on new line: “extension=php_apc.dll“. Save the file and restart wamp server.

Now the last step is to have admin page for APC view data, stats, system cache and other options for apc.

    • Go to this page Admin for apc and download as apc.php
    • Save it in your root folder, in my case the path is: C:\wamp\www
    • Open the apc.php with your favorite text editor and change this lanes:
      defaults('ADMIN_USERNAME','apc');    // Admin Username
      defaults('ADMIN_PASSWORD','password');   // Admin Password - CHANGE THIS TO ENABLE!!!
    • Now go to http://localhost/apc.php and you should see a page with status of your cache and useful information

That’s all. Good luck.

1 thought on “Install APC on 64bit WAMP server”

  1. Pingback: Install APC on WAMP server - Niko's Blog

Leave a Reply