Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i got an error when trying to install apc in xampp (windows).

c:\xampp\php>pecl install apc
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
54 source files, building
WARNING: php_bin C:\xampp\php\php.exe appears to have a suffix \php.exe, but con
fig variable php_suffix does not match
ERROR: The DSP APC.dsp does not exist.


help me please how to get apc.dsp.. thx.

share|improve this question

migrated from Sep 7 '11 at 20:20

This question came from our site for professional and enthusiast programmers.

i have follow that answer before.. i download the php_apc.dll and put it in /ext after that add some line of code in php.ini.. but it still cannot install apc in my local server. :( – MRWBSN Sep 7 '11 at 19:40
up vote 2 down vote accepted

Its windows I guess (from c:\xampp\php). So pecl would not work as it compiles the extension and for it needs, a c compiler, php headers and other stuff.

The easiest way is to download a prebuilt dll and add it to your extensions dir. I have also installed xampp on my win dev machine and done the same thing.

Grab the appropriate dll from
For PHP 5.3

DO NOT GET the nts version

If you have the latest version of XAMPP you would need the PHP 5.3 one

extract the dll to c:\xampp\php\ext directory
then add following line to your php.ini which is under c:\xampp\php


Note: This workd fine with XAMPP 1.7.4, but does not work with XAMPP 1.7.3 . There is a bundled php_apc.dll (version 3.1.3p) which works just fine. SO which XAMPP version do you have ? (you get the version when you open localhost in your browser

share|improve this answer
thx.. ur help is very useful.. :D – MRWBSN Sep 7 '11 at 20:24
I unable to find takes me to 404 – Gowri May 16 '12 at 12:40
@gowri it seems Pierre is only hosting the latest version now which is built on VC9, which wont be compatible with old versions of XAMPP (before 1.7.7) which has PHP built from VC6. So for now I'd say either try to use the latest from the downloads page and see if it works or stick with the one provided with XAMPP – danishgoel May 16 '12 at 14:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.