Instalación de APC con EasyPHP

I've been tying to follow este guide for integrating Doctrine 2 and CI 2. all was good until i ran "php doctrine-cli.php orm:generate-proxies" from a cmd, and got this error Fatal error: Call to undefined function Doctrine\Common\Cache\apc_fetch().

after some research it looks like I don't have the AlternativePhpCache (ACP) module installed. so i've tried every single version in downloads.php.net/pierre and they all yield the same error

https://lh3.googleusercontent.com/-QEt3udKTSGc/Tlkgr5POw4I/AAAAAAAAEwQ/hlAhmcxshDE/123.jpg (screenshot from my picasa as i can't upload images due to a lack of points)

Estoy usando :

  • Win7 (x64)
  • EasyPhp 5.3.5.0

am I doing something wrong? Thanks.

preguntado el 27 de agosto de 11 a las 16:08

does extension=php_apc.dll is set in your php.ini? -

yes. that's why im getting the alert in the first place -

is the APC module shows when you display phpinfo()? which version of APC you have? -

nope, i used php_apc-20110109-5.3-nts-vc9-x86.zip from downloads.php.net/pierre -

Then if it doesn't show in the phpinfo() it means the module is not laoded. Any easyphp error? hav you tried a different version? -

1 Respuestas

I had the same problem with Xammp. I made a search on google and found http://downloads.php.net/pierre/ web site. According to my operating system specification and PHP version I chose the suitable file which was php_apc-20110109-5.3-vc9-x86.zip (2011-01-09 12:16 -0800) for me and downloaded it. I extracted the file to my Xammp/php/ext carpeta como php_apc.dll. After all, I edited my php.ini file and add extension=php_apc.dll to extension section in php.ini. If you need you can add the following configuration.

[APC]

 - apc.enabled = 1 
 - apc.shm_segments = 1 
 - apc.shm_size = 64
 - apc.max_file_size = 16M 
 - apc.stat = 1

That worked out for me. If this is not going to work for you, then you may check your operating system(especially x86 or x64) and php version (5.2.* or 5.3.*). I hope this information will help you. Have a great day guys.

respondido 03 nov., 12:20

This helped me. Thanks. In the APC zip file from downloads.php.net/pierre there are two subfolders, nts y ts. The one in nts didn't work, but the file in ts worked. After copying that to the etc folder, adding extension=php_apc.dll to php.ini, and restarting Apache it was enabled and working. - Gavin

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.