Can't install PHP APC on Windows 7 x64
Posted by: Noranti (---.wmc.ch)
Date: January 19, 2011 06:21PM

I've installed "WampServer2.1d-x64" on a new Notebook "Windows 7 Pro 64 Bit". For a symfony project i need to install apc.dll.

what i've done:
- install wampserver with default settings on c:\wamp
- download apc
- copy apc.dll to the extension directory
- add extension=php_apc.dll to php.ini (both)
- activate php_apc in php extensions
- restart all services
- control over phpinfo()

result: phpinfo() don't show any apc.dll

apache_error.log:
PHP Startup: Unable to load dynamic library 'C:/Wamp/bin/php/php5.3.4/ext/php_apc.dll' - %1 is not a valid Win32 application

I tried all versions from [downloads.php.net], nothing has worked. Everytime the same error.

in the hope that someone can help me

Noranti

Options: ReplyQuote
Re: Can't install PHP APC on Windows 7 x64
Posted by: michaelo (188.141.70.---)
Date: June 15, 2011 10:59AM

Exact same problem here... (wampserver 2.1, Windows 7 Enterprise 64 bit)

Initially both php_intl.dll and php_apc.dll failed to load but solved part of the problem by copying *88.dll to apache bin folder... Reference this post for php_intl.dll fix... [forum.symfony-project.org]

Have tried countless version of the dll but same error...
Mike

Options: ReplyQuote
Re: Can't install PHP APC on Windows 7 x64
Posted by: michaelo (188.141.70.---)
Date: June 15, 2011 11:58AM

Was unable to get wampserver 2.1 to work with any version of the php_apc.dll, even tried wampserver64...
I installed Easyphp (5.3.6.0)... Copied the php_apc.dll file to C:\EasyPHP\php\ext folder, uncommented the php_intl.dll and restarted...

Everything working now... winking smiley

I still prefer wamp so will wait for a fix before re-installing...



Edited 2 time(s). Last edit at 06/15/2011 12:00PM by michaelo.

Options: ReplyQuote
Re: Can't install PHP APC on Windows 7 x64
Posted by: raiatea (---.w90-16.abo.wanadoo.fr)
Date: August 06, 2011 03:07PM

Solution:

I tried also to install php_apc-3.1.5-5.3-vc9-x86 on WampServer2.1d-x64.

There is a CPU mismatch : x86 vs x64. Dependency Walker can be used to check this :
php_apc.dll is compiled for x86, as indicated in the package name.

Either you install WampServer in x86 or you install APC in x64.

The archive pecl-5.3.4-Win32-VC9-x64.zip contains APC and Memcache
Download here : [www.anindya.com].

Also, I had awful performances with APC and WampServer x64,
I switched both to x86 and everything is 'flying' as expected.



Edited 2 time(s). Last edit at 08/11/2011 12:18PM by raiatea.

Options: ReplyQuote
Re: Can't install PHP APC on Windows 7 x64
Posted by: PESimard (---.dhcp.ahvl.nc.charter.com)
Date: August 09, 2011 01:24AM

There is also a mismatch possibility in addition to the Win32 vs. x64 versions.

The compiled library must match the PHP distribution in terms of compiler, and thread-safety. Compiler possibilities are VC6 or VC9, thread-safe or non-thread-safe.

These are for precompiled versions downloaded. Otherwise, you have to build the library from source, paying careful attention to the compiler settings used in the build.

Paul

Options: ReplyQuote
Re: Can't install PHP APC on Windows 7 x64
Posted by: warrenjsanchez23 (---.203.126.244.pldt.net)
Date: August 11, 2011 07:34PM

Noranti Wrote:
-------------------------------------------------------
> I've installed "WampServer2.1d-x64" on a new
> Notebook "Windows 7 Pro 64 Bit". For a symfony
> project i need to install apc.dll.
>
> what i've done:
> - install wampserver with default settings on
> c:\wamp
> - download apc
> - copy apc.dll to the extension directory
> - add extension=php_apc.dll to php.ini (both)
> - activate php_apc in php extensions
> - restart all services
> - control over phpinfo()
>
> result: phpinfo() don't show any apc.dll
>
> apache_error.log:
> PHP Startup: Unable to load dynamic library
> 'C:/Wamp/bin/php/php5.3.4/ext/php_apc.dll' - %1 is
> not a valid Win32 application
>
> I tried all versions from
> [downloads.php.net], nothing has
> worked. Everytime the same error.
>
> in the hope that someone can help me
>
> Noranti


Hi Noranti,

Try these version and steps :

php_apc.dll
This is because you are missing a file.
Step 1. You can download [dllcentral.com] here.
Step 2. Paste this file into your system32 and system folder. Also put it in your syswow
Step 3. Navigate to your System32(32Bit OS) or SyWOW64(64Bit OS) Folder.
Note: The location of System32 or SyWOW64 is
C:Windows\System32 (If you are using 32Bit Windows)
C:\Windows\SysWOW64 (if you are using 64Bit Windows)
Step 4.Paste the php_apc.dll into this folder.
Step 5.Run the game. It might work now.

Options: ReplyQuote


Sorry, only registered users may post in this forum.