APC install with EasyPHP
I've been tying to follow this 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)
I'm using :
- Win7 (x64)
- EasyPhp 5.3.5.0
am I 开发者_JS百科doing something wrong? Thanks.
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 folder as 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.
精彩评论