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 am having a problem in enabling the APC Cache. Here is my configuration.

PHP 5.3.6
Apache 2.2.19
Windows 7

I have downloaded the php_apc.dll from below URl:

I have placed that dll in php's extension folder and placed the below code in php.ini


Next anything remain to be enable the APC cache? Because when I place above line in PHP.ini then apache is not restarting.

Any help much appreciated.


[Tue Sep 06 14:22:28 2011] [notice] Parent: Received restart signal -- Restarting the server.
[Tue Sep 06 14:22:33 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
rocess is ending.
[Tue Sep 06 14:22:29 2011] [notice] Child 4212: Released the start mutex
[Tue Sep 06 14:23:00 2011] [notice] Child 4212: Waiting 270 more seconds for 1 worker threads to finish.
[Tue Sep 06 14:23:04 2011] [notice] Child 4212: All worker threads have exited.
[Tue Sep 06 14:23:04 2011] [notice] Child 4212: Child process is exiting
share|improve this question

migrated from Sep 6 '11 at 13:49

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

up vote 2 down vote accepted

What happens in Apache's main error.log when you restart it? This should give you a clue what is wrong...

Also since you are running PHP under Apache, I'm guessing you are probably running the Thread-Safe version (Non Thread-Safe versions are mainly for running PHP as an ISAPI module under IIS), and the file you have downloaded seems to be Non Thread-Safe (it has nts in the file name). You should be using the Thread-Safe build with Apache - try using this file instead.

Also, make sure you are using a VC9 build of PHP distributed from - the DLL will have been built against these releases and is not guaranteed to work with anyone else's distributions. It is certainly not guaranteed to work with a VC6 build, if for some reason this is what you are using.

Where is your Apache build from?

share|improve this answer
I have placed the error from error.log in question edit section... – Avinash Sep 6 '11 at 8:56
There is no obvious reason for your problem in that error log, are you using seperate PHP/Apache installs or a package like WAMP/XAMPP? – DaveRandom Sep 6 '11 at 9:03
separate PHP/Apache install, Apache 2.2.20 (win32), mod_ssl/2.2.20 Open SSL/0.9.8r PHP/5.3.5 – Avinash Sep 6 '11 at 9:29
Is your PHP build a thread-safe VC9 build obtained directly from And where did you get your Apache build from? 5.3 VC9 builds are built against Apache VC9 builds from – DaveRandom Sep 6 '11 at 9:43
You should find that the contents of the folder is the same as the contents of your existing Apache installation. Backup your Apache configuration files, then uninstall Apache and unzip the folder to where Apache used to be installed. You should be able to just put your original config files back into the conf directory, and start Apache. You may need to install as a service, in which case you can run httpd -k install. To be honest, you need to know quite a bit about how to manually configure Apache if anything goes wrong... It might even be worth starting a fresh question here – DaveRandom Sep 6 '11 at 15:03

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.