PHP APC apc_shm_create error on CLI
by Harun Yayli on Tuesday, March 11th, 2008 at 8:36 am under Hacks, PHP, Programming
If you’re getting an error like this one below on Windows PHP commandline make sure that you are not running an apache server that uses apc on the same machine!
[apc-error] apc_shm_create: shmget(0, 8388608, 658) failed: No error. It is possible that the chosen SHM segment size is higher than the operation system allows. Linux has usually a default limit of 32MB per segment.
This was hard to figure! Tested with PHP 5.2.5, APC 3.1.0-dev.
Recent Entries
- new pecl/memcache is out with memcache.php
- memcache.php flushes servers
- memcache.php can delete keys now
- memcache.php is now part of pecl/memcache
- memcache.php goes PECL
- memcache.php stats like apc.php
- oci_bind_by_name maxlength is not so optional
- Is Sun going to buy PHP too?(PHP Quebec 2008)
- PHP APC apc_shm_create error on CLI
- Facebook’s Buggy Spam Detection
Just got the same issue! Thanks for the tip!
April 2nd, 2008 at 11:54 amHi,
I got the same error, and I also was able to make my script run on my Windows machine AFTER I turned Apache off. However, this doesn’t really seem like a viable solution.
If I have my website running on a machine, and then have a separate PHP process that I want to run on the same box…..this won’t work for me.
Is there not a way to configure the php.ini memory parameters, or Apache, so that both things can run in one place?
Thanks, and hopefully, you already have the answer to this.
December 20th, 2008 at 4:10 pm