|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-03-27 23:30 UTC] lucas dot piris at mindworks dot com dot br
Description: ------------ My php.ini settings: [APCu] apc.enabled=1 apc.shm_segments=1 apc.shm_size=128M apc.ttl=7200 apc.enable_cli=1 apc.serializer=php The apache service unable to start when apc.enabled=1, causing error: [27-Mar-2017 23:09:03 UTC] PHP Fatal error: PHP Startup: apc_shm_attach: shmat failed: in Unknown on line 0 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
Hello, I have the same problem. I tried add apc.shm_size, but it does not help. Also I tried use APCu 5.1.6 and APCu 5.1.8 php -v PHP Fatal error: PHP Startup: apc_shm_attach: shmat failed: in Unknown on line 0 Fatal error: PHP Startup: apc_shm_attach: shmat failed: in Unknown on line 0 My php.ini [APCu] apc.enabled=1 apc.enable_cli=1 My environment: Windows 7 x64 php -v PHP 7.1.4 (cli) (built: Apr 11 2017 19:54:37) ( ZTS MSVC14 (Visual C++ 2015) x64 ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.4, Copyright (c) 1999-2017, by Zend TechnologiesHi Lucas, If I use "apc.shm_size=32" (without M) I have warning php -v PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line 0 Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line 0 PHP 7.1.4 (cli) (built: Apr 11 2017 19:54:37) ( ZTS MSVC14 (Visual C++ 2015) x64 ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.1.4, Copyright (c) 1999-2017, by Zend Technologies