Aug 3, 2011

Installing APC (3.1.6) on WAMP (64 bit)

My dev machine has 64bit wampserver installed on windows 7 (MSVC9 (Visual C++ 2008) , Thread Safe, x64). I wanted a caching solution that works well with this setup – As of this writing, APC is the only 64 bit option available.
Get the precompiled TS dll from here (In the comments posted on this page, you will find a link to php_apc.dll without memprotect). Save it in your php “ext” directory.
Add the following line to your php.ini file :
extension=php_apc.dll
Restart apache web server..browse your phpinfo page, and it should have a section for APC – The defaults work fine for a test server setup.
Next, setup the admin page – this will help you view/clear your variable cache(s):
  • Download apc.php from here
  • Save it in your webfolder as apc.php
  • Edit apc.php. Change the admin password (from the default ‘password’ to any string of your liking):
defaults(‘ADMIN_USERNAME’,'apc’);             // Admin Username
defaults(‘ADMIN_PASSWORD’,'pAssW0rd’);      // Admin Password – CHANGE THIS TO ENABLE!!!

Install PHP 5.3.6 on WAMP

I successfully installed PHP 5.3.6 on my WAMP server under Windows 7 64 bit. But this short tutorial will probably work on other versions as well.
Go to the Windows download page at PHP.net and download the desired version. You must select the ZIP VC6 x86 Thread Safe variant.
Unpack the contents to the PHP bin directory in your WAMP installation. I unpacked PHP 5.3.6 in C:\wamp\bin\php\php5.3.6\.
You should now copy the following files from the php5.3.0 directory, to your newly created directory (php5.3.6 in my case): php.ini, phpForApache.ini and wampserver.conf.
Now we just need to make a quick edit in both INI-files. Search for "5.3.0" and replace it with the PHP version you are installing.
Save the files, and you should see the new version in the PHP version menu in WAMP. If not, right-click the WAMP icon and choose "Exit", then start it again.