Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing PHP APC extension on windows

Tags:

php

apc

I want to install the APC extension for PHP. I've got to this page and I'm a little stuck. I've downloaded a file from here, which gives me a APC-3.1.9.tgz file. I've extracted the file. However from the page I've mentioned above, I'm given the impression I need to load a .dll file.

I'm lost and confused, what should I be doing?

  • OS: Windows Vista
  • Server: Apache
  • PHP: 5.3.5
like image 945
Gary Ryan Avatar asked Aug 16 '11 20:08

Gary Ryan


3 Answers

I downloaded the file from above mentioned http://downloads.php.net/pierre/. The zip contains two folders: "nts" and "ts" (probably "tread safe" and "non thread safe") with php_apc.dll file.

You must put this file in your PHP extensions folder (for exemple c:\wamp\bin\php5.4.1\ext) and edit PHP.ini file to add or uncomment the line:

extension=php_apc.dll

After restarting web service (Apache, IIS, etc.) you can check the PHP configuration with <?php phpinfo(); ?> to see if "apc" block appeared

like image 41
Srdjan Avatar answered Sep 21 '22 08:09

Srdjan


You can download the compiled dll from downloads.php.net.

like image 127
Salman von Abbas Avatar answered Sep 22 '22 08:09

Salman von Abbas


From http://www.php.net/manual/en/apc.installation.php

A DLL for this PECL extension is currently unavailable. See also the building on Windows section.

In other words: no easy way on Windows

like image 37
Mchl Avatar answered Sep 23 '22 08:09

Mchl