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

One Response to “PHP APC apc_shm_create error on CLI”

  1. PHP Encoder Says:

    Just got the same issue! Thanks for the tip!

Leave a Reply

authimage