PHP Fatal error: PHP Startup: apc_shm_create: shmget(0, 67108864, 914) failed: Invalid argument. 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. in Unknown on line 0
PHP Fatal error: PHP Startup: apc_shm_attach: shmat failed: in Unknown on line 0
This error is not at all fun because it actually prevents Apache/httpd from starting or working at all. It will die during restart
[root@phpbox stats]# service httpd status
httpd dead but subsys locked
Solution - Increase shmmax value in sysctl.conf to 256MB:
Edit /etc/sysctl.conf
kernel.shmmax = 268435456
sysctl -p
apc_shm_attach, shmat, apc_shm_create, shmget, php, solutionphp, fatal, startup, invalid, shm, segment, allows, linux, default, mb, prevents, apache, httpd, restart, phpbox, stats, subsys, shmmax, sysctl, conf, edit, etc, kernel,