;修改下面由64M to 256M
just wanted to mention for some who may have the same issue i did that the setting was not in php.ini. i found the setting in /etc/php.d/apc.ini
for my dev box with this error, i changed to “apc.shm_size=256M” from 64M and errors disappeared. also did a #service httpd restart to be safe.
Posted by esbenmr on June 2, 2012 at 7:33pm
**** SOLVED *****
2nd of June 2012
Alright, for those of you having this problem here is what I did. I am on OSX 10.7.4 (Lion)
First off, if you DON’T have the apc settings in your /private/etc/php.ini by default, do this (or else just edit your values):
1. Install PHP Pear: http://i.justrealized.com/2011/setup-php-pear-mac-os-lion/
2. Install PHP APC: http://i.justrealized.com/2010/install-php-apc-mac-os/
3. Add these lines to the end of your php.ini file (between [xdebug] and ; Local Variables – might not have an influence, but that worked for me).
Applications -> Terminal -> type in (without quotation marks): “cd /private/etc” hit enter/return -> “sudo nano php.ini” -> scroll all the way to the bottom by holding ctrl+v down for a couple of seconds. -> Add these lines to the end of your php.ini file (between [xdebug] and ; Local Variables):
So the trick for me was to change 32M to 128M and the apc.stat=7200 to =0.