{"id":811,"date":"2011-04-10T00:00:35","date_gmt":"2011-04-09T16:00:35","guid":{"rendered":"http:\/\/www.vmsvr.com\/wordpress\/?p=811"},"modified":"2011-07-06T15:44:38","modified_gmt":"2011-07-06T07:44:38","slug":"%e8%a7%a3%e5%86%b3php%e5%8f%af%e7%94%a8%e5%86%85%e5%ad%98%e4%b8%8d%e8%b6%b3%e6%96%b9%e6%b3%95%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.vmsvr.com\/wordpress\/post\/2011\/04\/10\/811.html","title":{"rendered":"\u89e3\u51b3php\u53ef\u7528\u5185\u5b58\u4e0d\u8db3\u65b9\u6cd5\uff01"},"content":{"rendered":"<p style=\"text-indent: 2em;\">\u672c\u4eba\u73b0\u5728\u535a\u5ba2\u6240\u5728\u7684\u865a\u62df\u4e3b\u673a<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/php\" title=\"View all posts in php\" target=\"_blank\">php<\/a><\/span>\u6267\u884c\u5185\u5b58<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/memory_limit\" title=\"View all posts in memory_limit\" target=\"_blank\">memory_limit<\/a><\/span> = 32M\uff0c\u5bfc\u81f4\u6211\u5f88\u591a\u63d2\u4ef6\u90fd\u65e0\u6cd5\u4f7f\u7528\uff0c\u4eca\u5929\u770b\u5230\u7f51\u4e0a\u6559\u7a0b\u60f3\u6b7b\u6d3b\u90fd\u8981\u8bd5\u8bd5\uff0c\u6b65\u9aa4\u5982\u4e0b\uff1a\u5728\u7f51\u7ad9\u76ee\u5f55\u91cc\u5efa\u7acb\u4e00\u4e2a<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/htaccess\" title=\"View all posts in .htaccess\" target=\"_blank\">.htaccess<\/a><\/span>\u6587\u4ef6\uff0c\u5185\u5bb9\u4e3a<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/php\" title=\"View all posts in php\" target=\"_blank\">php<\/a><\/span>_value <span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/memory_limit\" title=\"View all posts in memory_limit\" target=\"_blank\">memory_limit<\/a><\/span> 128M\u4f60\u53ef\u4ee5\u653964M\u6216256M\u90fd\u53ef\u4ee5\uff0c\u5982\u679c\u76ee\u5f55\u91cc\u5b58\u5728<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/htaccess\" title=\"View all posts in .htaccess\" target=\"_blank\">.htaccess<\/a><\/span>\u6587\u4ef6\uff0c\u53ea\u9700\u7f16\u8f91\u8be5\u6587\u4ef6\u53e6\u8d77\u4e00\u884c\u8f93\u5165<\/p>\n<pre name=\"code\" ruby=\"\">php_value <span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/memory_limit\" title=\"View all posts in memory_limit\" target=\"_blank\">memory_limit<\/a><\/span> 128M<\/pre>\n<p>\u5373\u53ef\uff0c\u4f46\u662f\u5982\u679c\u8be5\u65b9\u6cd5\u88ab\u7ba1\u7406\u5458\u7981\u7528\uff0c\u90a3\u4e48\u53ef\u80fd\u9020\u6210\u670d\u52a1\u5668500\u9519\u8bef\uff01\u540c\u65f6\u8be5\u65b9\u6cd5\u53ea\u8bd5\u7528liunx apache\u670d\u52a1\u5668\u3002\u7528php\u67e5\u770b\u53d1\u73b0Local Value\u4e3a128m\uff0cMaster Value\u4e3a32m\uff0c\u4e0d\u7528\u7ba1\u4ed6\uff0c\u4e8b\u5b9e\u4e0a\u5df2\u7ecf\u5206\u914d\u4e86128m\u5185\u5b58\uff0c\u5404\u79cd\u63d2\u4ef6\u6b63\u5e38\u4f7f\u7528\uff01<\/p>\n<div align=\"right\" style=\"font-size: 12px;\"><!--more \u7ee7\u7eed\u9605\u8bfb\u5168\u6587--><\/div>\n<p style=\"text-indent: 2em;\">\u8fd8\u6709\u4e24\u79cd\u65b9\u6cd5\u6ca1\u6709\u8bd5\u9a8c\uff0c\u4ec5\u4f9b\u53c2\u8003\uff0c\u4e00\u662f\u5728\u7a0b\u5e8f\u9875\uff08<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/wordpress\" title=\"View all posts in wordpress\" target=\"_blank\">wordpress<\/a><\/span> \u662f\u5728wp-setting.php\u91cc\u8bbe\u7f6e\u3002\uff09\u52a0\u4e0a\u4ee3\u7801\uff1aini_set(&rsquo;memory_limit&rsquo;, &lsquo;16M&lsquo;);\u63a8\u8350\u8fd9\u79cd\u65b9\u6cd5\u3002 \u4e8c\u662f\u5728\u7f51\u7ad9\u6839\u76ee\u5f55\u5efa\u7acbphp.ini\u6587\u4ef6\uff0c\u5185\u5bb9\u4e3amemory_limit = 128M\uff0c\u7136\u540e\u5728<span class='wp_keywordlink_affiliate'><a href=\"https:\/\/www.vmsvr.com\/wordpress\/tag\/htaccess\" title=\"View all posts in .htaccess\" target=\"_blank\">.htaccess<\/a><\/span>\u6587\u4ef6\u4e2d\u5199\u5165suPHP_ConfigPath \/home\/\u7528\u6237\u540d\/public_html\/\uff08\u7f51\u7ad9\u76ee\u5f55\u7269\u7406\u8def\u5f84\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u4eba\u73b0\u5728\u535a\u5ba2\u6240\u5728\u7684\u865a\u62df\u4e3b\u673aphp\u6267\u884c\u5185\u5b58memory_limit = 32M\uff0c\u5bfc &hellip; <a href=\"https:\/\/www.vmsvr.com\/wordpress\/post\/2011\/04\/10\/811.html\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/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":[139,14],"tags":[220,221,120,127,334],"class_list":["post-811","post","type-post","status-publish","format-standard","hentry","category-technology","category-post","tag-htaccess","tag-memory_limit","tag-php","tag-wordpress","tag-334"],"views":6027,"_links":{"self":[{"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/posts\/811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/comments?post=811"}],"version-history":[{"count":0,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/posts\/811\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/media?parent=811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/categories?post=811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmsvr.com\/wordpress\/wp-json\/wp\/v2\/tags?post=811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}