{"id":577,"date":"2006-02-23T01:00:00","date_gmt":"2006-02-22T16:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2006-02-23-1.html"},"modified":"2026-08-10T14:36:02","modified_gmt":"2026-08-10T05:36:02","slug":"2006-02-23-1","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2006-02-23-1.html","title":{"rendered":"eAccelerator \u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0 &#8211; Can not create shared memory area in Unknown on line 0"},"content":{"rendered":"<p>\nQ. Linux + Apache + PHP + eAccelerator \u306e\u74b0\u5883\u3067 apache \u304c\u6b21\u306e\u30a8\u30e9\u30fc\u3092\u51fa\u3057\u3066\u52d5\u304b\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>$tail -f error_log<br \/>\nPHP Warning:  [eAccelerator] Can not create shared memory area in Unknown on line 0<br \/>\nPHP Fatal error:  Unable to start eAccelerator module in Unknown on line 0<br \/>\n[Thu Feb 23 09:26:31 2006] [warn] pid file \/usr\/local\/apache_1.3.34\/logs\/httpd.pid overwritten &#8212; Unclean shutdown of previous Apache run?<br \/>\nPHP Warning:  [eAccelerator] Can not create shared memory area in Unknown on line 0<br \/>\nPHP Fatal error:  Unable to start eAccelerator module in Unknown on line 0\n<\/p><\/blockquote>\n<p>A. \u3053\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u5834\u5408\u3001\u539f\u56e0\u306f\u3053\u3053\u306e\u6b21\u306e FAQ \u306b\u66f8\u3044\u3066\u3042\u308b\u30b1\u30fc\u30b9\u306e\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\n<\/p>\n<blockquote><p>Q: I&#8217;m using linux 2.6 kernel and eAccelerator doesn&#8217;t get loaded when the shm_size is set to value bigger than 32mb. Php gives this warning:<br \/>\nPHP Warning: [eAccelerator] Can not create shared memory area in Unknown on line 0<\/p>\n<p>A: The default shared memory size for the 2.6 kernel is 32mb. You can change this size by setting \/proc\/sys\/kernel\/shmmax to the disired maximum value. You can do this by echo VAL > \/proc\/sys\/kernel\/shmmax or add the line kernel.shmmax=VAL to \/etc\/sysctl.conf so you don&#8217;t have to set it manualy every time you reboot.\n<\/p><\/blockquote>\n<p>\u30ab\u30fc\u30cd\u30eb\u306e\u5171\u6709\u30e1\u30e2\u30ea\u5236\u9650(\u30c7\u30d5\u30a9\u30eb\u30c832MB)\u3092\u8d85\u3048\u3066\u3001eaccelerator.shm_size \u3092\u8a2d\u5b9a\u3057\u305f\u306e\u304c\u539f\u56e0\u3067\u3057\u305f\u3002php.ini \u3067\n<\/p>\n<blockquote><p>eaccelerator.shm_size=32\n<\/p><\/blockquote>\n<p>\u306e\u3088\u3046\u306b\u7bc4\u56f2\u5185\u306b\u62bc\u3048\u308b\u304b\u3001\u3042\u308b\u3044\u306f FAQ \u306b\u3042\u308b\u3088\u3046\u306b\n<\/p>\n<blockquote><p># cat \/proc\/sys\/kernel\/shmmax<br \/>\n33554432\n<\/p><\/blockquote>\n<p>\u3092\u3001<br \/>\n# expr 64 &#8220;*&#8221; 1024 &#8220;*&#8221; 1024 > \/proc\/sys\/kernel\/shmmax<br \/>\n\u306e\u3088\u3046\u306b\u3001\u30d0\u30a4\u30c8\u5358\u4f4d\u3067\u9069\u5207\u306b\u4e0a\u9650\u3092\u8a2d\u5b9a\u3057\u3066\u30ab\u30fc\u30cd\u30eb\u3054\u3068\u30ea\u30d6\u30fc\u30c8\u3059\u308c\u3070\u89e3\u6c7a\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q. Linux + Apache + PHP + eAccelerator \u306e\u74b0\u5883\u3067 apache \u304c\u6b21\u306e\u30a8\u30e9\u30fc\u3092\u51fa\u3057\u3066\u52d5\u304b\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002 $tail -f error_log PHP Warning: [eAcce &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2006-02-23-1.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">eAccelerator \u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0 &#8211; Can not create shared memory area in Unknown on line 0<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[141],"tags":[32],"class_list":["post-577","post","type-post","status-publish","format-standard","hentry","category-lifehack","tag-php"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/577","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=577"}],"version-history":[{"count":1,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/577\/revisions"}],"predecessor-version":[{"id":1558,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/577\/revisions\/1558"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}