installing PHP APC extension on windows
Asked Answered
P

5

5

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
Pyridoxine answered 16/8, 2011 at 20:28 Comment(1)
Thought this might help A DLL for APC on windows? pecl.php.net/package/APC/3.1.13/windowsCyrano
D
3

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

Diplococcus answered 16/8, 2011 at 20:34 Comment(2)
Hello there, I went through the documents and followed step-by-step and stuck at step 12 which says in the same directory (C:\php-sdk\php53dev\vc9\x86) there is a “deps” folder, extract any of your required libraries inside that folder (see wiki.php.net/internals/windows/libs) but make sure their top-level contains /include and /lib (some of them have an extra directory level in there) What does the extract any of your required libraries inside that folder means? I dont know which library I need. Oh well I am trying to install APC I doubt he means it or that site doesnt have itIncontrovertible
@dev2dev: I think you can safely start a new question about this.Diplococcus
J
4

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

Jeffries answered 16/8, 2011 at 21:10 Comment(3)
Hi, Thanks for the resource. I've tried a few of these out but I keep getting a warning message saying "Unable to initialize module. Module complied with module API=2006013. PHP compiled with module API=20090626" Any idea what this means?Pyridoxine
Apparently the DLL was compiled with Visual Studio 2006 while PHP with Visual Studio 2009.Diplococcus
Also, this link doesn't have the latest 3.1.9 anyway.Outlet
D
3

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

Diplococcus answered 16/8, 2011 at 20:34 Comment(2)
Hello there, I went through the documents and followed step-by-step and stuck at step 12 which says in the same directory (C:\php-sdk\php53dev\vc9\x86) there is a “deps” folder, extract any of your required libraries inside that folder (see wiki.php.net/internals/windows/libs) but make sure their top-level contains /include and /lib (some of them have an extra directory level in there) What does the extract any of your required libraries inside that folder means? I dont know which library I need. Oh well I am trying to install APC I doubt he means it or that site doesnt have itIncontrovertible
@dev2dev: I think you can safely start a new question about this.Diplococcus
D
3

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

Decortication answered 28/1, 2013 at 21:58 Comment(0)
L
1

Here's hoping people looking for APC for Windows are still checking this post.

I just found APC 3.1.9 for Windows here:

http://dev.freshsite.pl/php-accelerators/apc.html

Confirmed working on Apache 2, PHP 5.3.8, Windows 7 (32-bit).

Lurlenelurline answered 16/1, 2012 at 12:32 Comment(0)
T
0

try this Alternative PHP Cache (APC) 3.1.9 extension

https://code.google.com/p/xampp-php-extensions/downloads/detail?name=php_apc.dll&can=2&q=

Taber answered 5/8, 2013 at 11:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.