Install APC on 64bit WAMP server

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.

Posted in Php, Wamp at July 12th, 2013. 1 Comment.

Install virtual hosts on Wamp

Today I will show you how to install virtual hosts on Wamp server.

First open your hosts file, you can find it in this folder:
to edit it you need to have administrator permissions.

After this line: localhost
add new one with name of your domain: test.local
I prefer to use .local for my virtual domains to know is that virtual or real domain name.
Next step is to open httpd.conf file which is locate in:
find this line:
# Virtual hosts
# Include conf/extra/httpd-vhosts.conf
to enable httpd-vhosts.conf just remove # at the begin of the row. After this open httpd-vhosts.conf for edit.
Add this:

<VirtualHost *:80>
DocumentRoot "C:/wamp/www/test/www"
ServerName test.local
ServerAlias www.test.local
<Directory "C:/wamp/www/test/www">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from

Restart your Wamp server and type in your browser test.local .

Posted in Apache at July 8th, 2011. No Comments.

Install APC on WAMP server

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

Posted in Php, Wamp at July 6th, 2011. 28 Comments.