I am getting the following error when trying to start php-fpm56w in a Docker container running CentOS 6.6:
[root@1b9ec42c577b conf]# service php-fpm start Starting php-fpm: [24-Jul-2015 19:37:53] NOTICE: PHP message: 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 [24-Jul-2015 19:37:53] NOTICE: PHP message: PHP Fatal error: PHP Startup: apc_shm_attach: shmat failed: in Unknown on line 0 /bin/bash: line 1: 724 Segmentation fault /usr/sbin/php-fpm --daemonize [FAILED]
I suspect that it is a shared memory issue. I have tried changing the shared memory size in
; The OPcache shared memory storage size. opcache.memory_consumption=64
to 32 and 128 but it hasn't fixed the problem. I also upgraded the memory in the host VM, which is running CentOS 7, from 1 GB to 2 GB. Any ideas? Thanks!