2

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: http://downloads.php.net/pierre/php_apc-20110109-5.3-nts-vc9-x86.zip

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

extension=php_apc.dll

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.

Edit:

[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

1 Answer 1

2

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 php.net - 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?

15
  • I have placed the error from error.log in question edit section...
    – Avinash
    Sep 6, 2011 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, 2011 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, 2011 at 9:29
  • Is your PHP build a thread-safe VC9 build obtained directly from php.net? And where did you get your Apache build from? php.net 5.3 VC9 builds are built against Apache VC9 builds from apachelounge.com
    – DaveRandom
    Sep 6, 2011 at 9:43
  • 1
    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, 2011 at 15:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .