{"id":602,"date":"2013-04-01T23:34:05","date_gmt":"2013-04-01T14:34:05","guid":{"rendered":"http:\/\/www.prime-architect.co.jp\/myblog\/?p=602"},"modified":"2013-04-01T23:34:52","modified_gmt":"2013-04-01T14:34:52","slug":"cakephp%e3%81%a7%e3%83%90%e3%83%83%e3%83%81%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b%e9%9a%9b%e3%80%81php-ini%e3%81%ae%e5%80%a4%e3%82%92%e5%a4%89%e6%9b%b4%e3%81%97%e3%81%9f%e3%81%84%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.prime-architect.co.jp\/myblog\/php-602","title":{"rendered":"cakePHP\u3067\u30d0\u30c3\u30c1\u3092\u5b9f\u884c\u3059\u308b\u969b\u3001php.ini\u306e\u5024\u3092\u5909\u66f4\u3057\u3066\u5b9f\u884c\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p> \u4eca\u65e5\u306fcakePHP\u306e\u30d0\u30c3\u30c1\u5b9f\u884c\u6642\u306ephp.ini\u9805\u76ee\u3092\u5909\u66f4\u3059\u308b\u8a71\u3067\u3059\u3002<\/p>\n<p>\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306a\u3069\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001php.ini\u304c\u76f4\u63a5\u7de8\u96c6\u51fa\u6765\u306a\u3044\u305f\u3081\u3001.htaccess\u306a\u3069\u306b\u8a2d\u5b9a\u3092\u8a18\u5165\u3057\u3066\u5bfe\u5fdc\u3057\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u79c1\u304c\u4eca\u4fdd\u5b88\u3057\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u3082\u30ab\u30b4\u30e4\u306e\u5c02\u7528\u30b5\u30fc\u30d0\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001php.ini\u306e\u5909\u66f4\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u304b\u3089<br \/>\n\u4e00\u90e8\u306e\u8a2d\u5b9a\u3057\u304b\u5909\u66f4\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3067\u3001\u5148\u65e5\u3001\u904e\u53bb\u30c7\u30fc\u30bf\u306e\u79fb\u7ba1\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u305f\u3081\u3001\u30d0\u30c3\u30c1\u3092\u4f5c\u6210\u3057\u3001\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3044\u3056\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u30e1\u30e2\u30ea\u30fc\u30a8\u30e9\u30fc\u304c\u3002\u3002\u3002<\/p>\n<p>Fatal error: Allowed memory size of 83886080 bytes exhausted (tried to allocate 85 bytes) in \/\u301c\/cake\/libs\/model\/datasources\/dbo\/dbo_mysql.php on line 779<\/p>\n<p>\u307b\u307b\u3046\u3002\u3002<br \/>\n\u3069\u3046\u3084\u3089\u30e1\u30e2\u30ea\u30fc\u304c\u8db3\u308a\u306a\u3044\u3068\u8a00\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u304b\u3089memory_limit\u3092512M\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u306a\u305c\u3060\u308d\u3046\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001<br \/>\n\u3069\u3046\u3084\u3089\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u304b\u3089\u8a2d\u5b9a\u3057\u305f\u5024\u306fLocal Value\u3057\u304b\u5909\u66f4\u3055\u308c\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001apache\u7d4c\u7531(WEB)\u3067\u3046\u3054\u304fPHP\u306b\u3064\u3044\u3066\u306fmemory_limit\u306f512M\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u5b9f\u884c\u3057\u305f\u5834\u5408\u3001<br \/>\nmaster value\u306e\u5024\u3092\u898b\u306b\u3044\u304f\u3088\u3046\u3067\u3001\u5909\u66f4\u3057\u305f\u5024\u304c\u9069\u7528\u3055\u308c\u306a\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u30e1\u30e2\u30ea\u30fc\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u308f\u3051\u3067\u3001\u30d0\u30c3\u30c1\u304b\u3089\u5b9f\u884c\u3057\u305f\u5834\u5408\u3067\u3082memory_limit\u306e\u5024\u3092\u5909\u66f4\u3067\u304d\u308b\u65b9\u6cd5\u306f\u306a\u3044\u304b\u63a2\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001<br \/>\n\u7cf8\u53e3\u306f\u3001php\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u5b9f\u884c\u3059\u308b\u969b\u306b\u3001\u76f4\u63a5memory_limit\u306e\u5024\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u304c -d\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u51fa\u6765\u308b\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067<br \/>\n\u3053\u308c\u3092\u5143\u306b\u306a\u3093\u3068\u304b\u691c\u8a0e\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\nphp -d memory_limit 512M  .\/test_batch.php<br \/>\n\u3000\u3000\u3000\u2191<br \/>\n\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u306d\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u8272\u3005\u8a66\u884c\u932f\u8aa4\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u307e\u305a\u306f\u3053\u308c\u3002<br \/>\n\u901a\u5e38cakePHP\u3067\u30d0\u30c3\u30c1\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3059\u308b\u306e\u3067\u3059\u304c\u3001<br \/>\ncake -app \/~\/\u30d1\u30b9\/app test_batch<br \/>\n\u3000\u3000\u3000\u2193<br \/>\n\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u307f\u308b\u3068\u3002\u3002<br \/>\ncake -app -d memory_limit=512M \/~\/\u30d1\u30b9\/app test_batch<\/p>\n<p>\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30c0\u30e1\u3067\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3053\u3053\u306fcake\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u307f\u3066\u307f\u308b\u4e8b\u306b\u3002\u3002\u3002<br \/>\n\u305d\u3046\u3059\u308b\u3068\u3002\u3002\u3000\u4e2d\u306bphp\u306e\u5b9f\u884c\u30b3\u30de\u30f3\u30c9\u304c\u3002\u3002\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n#!\/bin\/bash\r\n################################################################################\r\n#\r\n# Bake is a shell script for running CakePHP bake script\r\n# PHP versions 4 and 5\r\n#\r\n# CakePHP(tm) :  Rapid Development Framework (http:\/\/cakephp.org)\r\n# Copyright 2005-2011, Cake Software Foundation, Inc.\r\n#\r\n# Licensed under The MIT License\r\n# Redistributions of files must retain the above copyright notice.\r\n#\r\n# @copyright            Copyright 2005-2011, Cake Software Foundation, Inc.\r\n# @link                 http:\/\/cakephp.org CakePHP(tm) Project\r\n# @package              Cake\r\n# @subpackage           Cake.Console\r\n# @since                CakePHP(tm) v 1.2.0.5012\r\n# @license              MIT License (http:\/\/www.opensource.org\/licenses\/mit-license.php)\r\n#\r\n################################################################################\r\nLIB=$(cd -P -- &quot;$(dirname -- &quot;$0&quot;)&quot; &amp;&amp; pwd -P) &amp;&amp; LIB=$LIB\/$(basename -- &quot;$0&quot;)\r\n\r\nwhile [ -h $LIB ]; do\r\n    DIR=$(dirname -- &quot;$LIB&quot;)\r\n    SYM=$(readlink $LIB)\r\n    LIB=$(cd $DIR &amp;&amp; cd $(dirname -- &quot;$SYM&quot;) &amp;&amp; pwd)\/$(basename -- &quot;$SYM&quot;)\r\ndone\r\n\r\nLIB=$(dirname -- &quot;$LIB&quot;)\/\r\nAPP=`pwd`\r\n\r\nexec php -q  ${LIB}cake.php -working &quot;${APP}&quot; &quot;$@&quot;\r\n\r\nexit;\r\n<\/pre>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001<\/p>\n<p>exec php -q  ${LIB}cake.php -working &#8220;${APP}&#8221; &#8220;$@&#8221;<br \/>\n\u306e\u90e8\u5206\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3057\u3066\u5909\u66f4<\/p>\n<p>\u3000\u3000\u3000\u2193<br \/>\nexec php -q -d memory_limit=512M ${LIB}cake.php -working &#8220;${APP}&#8221; &#8220;$@&#8221;<\/p>\n<p>\u3059\u308b\u3068\u3001\u7121\u4e8b\u3046\u307e\u304f\u884c\u304d\u307e\u3057\u305f\u3002\u3002<\/p>\n<p>\u306a\u308b\u307b\u3069\u3067\u3059\u306d\u301c\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u306fcakePHP\u306e\u30d0\u30c3\u30c1\u5b9f\u884c\u6642\u306ephp.ini\u9805\u76ee\u3092\u5909\u66f4\u3059\u308b\u8a71\u3067\u3059\u3002 \u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306a\u3069\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001php.ini\u304c\u76f4\u63a5\u7de8\u96c6\u51fa\u6765\u306a\u3044\u305f\u3081\u3001.htaccess\u306a\u3069\u306b\u8a2d\u5b9a\u3092\u8a18\u5165\u3057\u3066\u5bfe\u5fdc\u3057\u305f\u308a\u3057\u307e\u3059\u3002 \u79c1\u304c\u4eca\u4fdd\u5b88\u3057\u3066\u3044 &hellip; <a href=\"https:\/\/www.prime-architect.co.jp\/myblog\/php-602\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;cakePHP\u3067\u30d0\u30c3\u30c1\u3092\u5b9f\u884c\u3059\u308b\u969b\u3001php.ini\u306e\u5024\u3092\u5909\u66f4\u3057\u3066\u5b9f\u884c\u3059\u308b\u65b9\u6cd5&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[12],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/posts\/602"}],"collection":[{"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/comments?post=602"}],"version-history":[{"count":9,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/posts\/602\/revisions"}],"predecessor-version":[{"id":611,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/posts\/602\/revisions\/611"}],"wp:attachment":[{"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/media?parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/categories?post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/tags?post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}