Install APC with EasyPHP

I got attached to follow this guide on integrating Doctrine 2 and CI 2. Everything was fine until I ran "php doctrine-cli.php orm: generate-proxies" from 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 tried every version in downloads.php.net/pierre and they all give the same error

https://lh3.googleusercontent.com/-QEt3udKTSGc/Tlkgr5POw4I/AAAAAAAAEEwQ/hlAhmcxshDE/123.jpg (screenshot from my picasa, because I cannot upload images due to lack of glasses)

I use:

  • Win7 (x64)
  • EasyPhp 5.3.5.0

Am I doing something wrong? Thanks.

+4
source share
1 answer

I had the same problem with Xammp. I did a google search and found a http://downloads.php.net/pierre/ website. According to my specification of the operating system and version of PHP, I selected the appropriate 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 the Xammp / php / ext folder as php_apc.dll . In the end, I edited the php.ini file and add extension = php_apc.dll to the 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 

It worked for me. If this does not work for you, you can check your operating system (especially x86 or x64) and php version (5.2. * Or 5.3. *). I hope this information helps you. Have great people of the day.

+2
source

Source: https://habr.com/ru/post/1369299/


All Articles