{"id":31731,"date":"2024-11-25T14:38:09","date_gmt":"2024-11-25T06:38:09","guid":{"rendered":"https:\/\/fwq.ai\/blog\/31731\/"},"modified":"2024-11-25T14:38:09","modified_gmt":"2024-11-25T06:38:09","slug":"phpcms%e4%b8%8a%e4%bc%a0%e9%94%99%e8%af%af413%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/31731\/","title":{"rendered":"PHPCMS\u4e0a\u4f20\u9519\u8bef413\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/046\/5f14f87c3dd58253.jpg\" class=\"aligncenter\" title=\"PHPCMS\u4e0a\u4f20\u9519\u8bef413\uff1f\u63d2\u56fe\" alt=\"PHPCMS\u4e0a\u4f20\u9519\u8bef413\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>PHPCMS\u4e0a\u4f20\u9519\u8bef413\uff1f<\/strong><\/p>\n<p>PHPCMS\u4e0a\u4f20\u9519\u8bef413\uff0c\u5176\u539f\u56e0Nginx\u9ed8\u8ba4\u9650\u5236\u6700\u5927\u4e0a\u4f20\u6587\u4ef6\u5c31\u662f1M\uff0c\u6240\u4ee5\u4e0a\u4f20\u6587\u4ef6\u8d85\u8fc71M\u5c31\u4f1a\u62a5413\u9519\u8bef\uff0c\u89e3\u51b3\u65b9\u6cd5\uff1a\u627e\u5230\u201cnginx.conf\u201d\u914d\u7f6e\u4e0b\u7684\u201cclient_max_body_size\u201d\uff0c\u66f4\u6539\u4e3a10M\u5373\u53ef\u3002<strong><br \/><\/strong><\/p>\n<p style=\"padding: 0px;margin: 0px;font-family: Verdana, Arial, Tahoma\"><strong>Apache\u670d\u52a1\u5668\u89e3\u51b3\u65b9\u6cd5<\/strong><\/p>\n<p>\u4fee\u6539\u4e0bApache\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684LimitRequestBody\u914d\u7f6e\uff0c\u5982\u679c\u662f\u865a\u62df\u4e3b\u673a\uff0c\u8bf7\u8054\u7cfb\u7a7a\u95f4\u5546\u5e2e\u52a9\u4fee\u6539\u3002<\/p>\n<p>\u5177\u4f53\u6b65\u9aa4\uff1a<br \/>\u5728apache\u73af\u5883\u4e2d\u4e0a\u4f20\u8f83\u5927\u8f6f\u4ef6\u7684\u65f6\u5019\uff0c\u6709\u65f6\u5019\u4f1a\u51fa\u73b0413\u9519\u8bef\uff0c\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\u7684\u539f\u56e0\uff0c\u662f\u56e0\u4e3aapache\u7684\u914d\u7f6e\u4e0d\u5f53\u9020\u6210\u7684\uff0c\u627e\u5230apache\u7684\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55\u4e5f\u5c31\u662fconf\u76ee\u5f55\uff0c\u548c\u8fd9\u4e2a\u76ee\u5f55\u5e73\u884c\u7684\u4e00\u4e2a\u76ee\u5f55\u53ebconf.d\u6253\u5f00\u8fd9\u4e2aconf.d\uff0c\u91cc\u9762\u6709\u4e00\u4e2aphp.conf<br \/>\u76ee\u5f55\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<pre>##&nbsp;PHP&nbsp;is&nbsp;an&nbsp;HTML-embedded&nbsp;scripting&nbsp;language&nbsp;which&nbsp;attempts&nbsp;to&nbsp;make&nbsp;it#&nbsp;easy&nbsp;for&nbsp;developers&nbsp;to&nbsp;write&nbsp;dynamically&nbsp;generated&nbsp;webpages.#\nLoadModule&nbsp;php4_module&nbsp;modules\/libphp4.so\n##&nbsp;Cause&nbsp;the&nbsp;PHP&nbsp;interpreter&nbsp;handle&nbsp;files&nbsp;with&nbsp;a&nbsp;.php&nbsp;extension.#\nSetOutputFilter&nbsp;PHPSetInputFilter&nbsp;PHPLimitRequestBody&nbsp;6550000\n##&nbsp;Add&nbsp;index.php&nbsp;to&nbsp;the&nbsp;list&nbsp;of&nbsp;files&nbsp;that&nbsp;will&nbsp;be&nbsp;served&nbsp;as&nbsp;directory#&nbsp;indexes.#DirectoryIndex&nbsp;index.php<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u9519\u8bef\u5c31\u53d1\u751f\u5728\u8fd9\u4e2aLimitRequestBody\u914d\u7f6e\u4e0a\uff0c\u5c06\u8fd9\u4e2a\u7684\u503c\u6539\u5927\u5230\u8d85\u8fc7\u4f60\u7684\u8f6f\u4ef6\u5927\u5c0f\u5c31\u53ef\u4ee5\u4e86<\/p>\n<p>\u5982\u679c\u6ca1\u6709\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u8bf7\u5c06<\/p>\n<pre>SetOutputFilter&nbsp;PHP\nSetInputFilter&nbsp;PHP\nLimitRequestBody&nbsp;6550000<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5199\u5230apache\u7684\u914d\u7f6e\u6587\u4ef6\u91cc\u9762\u5373\u53ef\u3002<\/p>\n<p>\u63a8\u8350\u6559\u7a0b\uff1a\u300a\/&#8221; target=&#8221;_blank&#8221;&gt;PHPCMS\u6559\u7a0b\u300b<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fPHPCMS\u4e0a\u4f20\u9519\u8bef413\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHPCMS\u4e0a\u4f20\u9519\u8bef413\uff1f PHPCMS\u4e0a\u4f20\u9519\u8bef413\uff0c\u5176\u539f\u56e0Nginx\u9ed8\u8ba4\u9650\u5236\u6700\u5927\u4e0a\u4f20\u6587\u4ef6\u5c31\u662f1M\uff0c\u6240\u4ee5\u4e0a\u4f20\u6587\u4ef6\u8d85\u8fc71M\u5c31\u4f1a\u62a5413\u9519\u8bef\uff0c\u89e3\u51b3\u65b9\u6cd5\uff1a\u627e\u5230\u201cnginx.conf\u201d\u914d\u7f6e\u4e0b\u7684\u201cclient_max_body_size\u201d\uff0c\u66f4\u6539\u4e3a10M\u5373\u53ef\u3002 Apache\u670d\u52a1\u5668\u89e3\u51b3\u65b9\u6cd5 \u4fee\u6539\u4e0bApache\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684LimitRequestBody\u914d\u7f6e\uff0c\u5982\u679c\u662f\u865a\u62df\u4e3b\u673a\uff0c\u8bf7\u8054\u7cfb\u7a7a\u95f4\u5546\u5e2e\u52a9\u4fee\u6539\u3002 \u5177\u4f53\u6b65\u9aa4\uff1a\u5728apache\u73af\u5883\u4e2d\u4e0a\u4f20\u8f83\u5927\u8f6f\u4ef6\u7684\u65f6\u5019\uff0c\u6709\u65f6\u5019\u4f1a\u51fa\u73b0413\u9519\u8bef\uff0c\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\u7684\u539f\u56e0\uff0c\u662f\u56e0\u4e3aapache\u7684\u914d\u7f6e\u4e0d\u5f53\u9020\u6210\u7684\uff0c\u627e\u5230apache\u7684\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55\u4e5f\u5c31\u662fconf\u76ee\u5f55\uff0c\u548c\u8fd9\u4e2a\u76ee\u5f55\u5e73\u884c\u7684\u4e00\u4e2a\u76ee\u5f55\u53ebconf.d\u6253\u5f00\u8fd9\u4e2aconf.d\uff0c\u91cc\u9762\u6709\u4e00\u4e2aphp.conf\u76ee\u5f55\u5185\u5bb9\u5982\u4e0b\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b ##&nbsp;PHP&nbsp;is&nbsp;an&nbsp;HTML-embedded&nbsp;scripting&nbsp;language&nbsp;which&nbsp;attempts&nbsp;to&nbsp;make&nbsp;it#&nbsp;easy&nbsp;for&nbsp;developers&nbsp;to&nbsp;write&nbsp;dynamically&nbsp;generated&nbsp;webpages.# LoadModule&nbsp;php4_module&nbsp;modules\/libphp4.so ##&nbsp;Cause&nbsp;the&nbsp;PHP&nbsp;interpreter&nbsp;handle&nbsp;files&nbsp;with&nbsp;a&nbsp;.php&nbsp;extension.# SetOutputFilter&nbsp;PHPSetInputFilter&nbsp;PHPLimitRequestBody&nbsp;6550000 ##&nbsp;Add&nbsp;index.php&nbsp;to&nbsp;the&nbsp;list&nbsp;of&nbsp;files&nbsp;that&nbsp;will&nbsp;be&nbsp;served&nbsp;as&nbsp;directory#&nbsp;indexes.#DirectoryIndex&nbsp;index.php \u767b\u5f55\u540e\u590d\u5236 \u9519\u8bef\u5c31\u53d1\u751f\u5728\u8fd9\u4e2aLimitRequestBody\u914d\u7f6e\u4e0a\uff0c\u5c06\u8fd9\u4e2a\u7684\u503c\u6539\u5927\u5230\u8d85\u8fc7\u4f60\u7684\u8f6f\u4ef6\u5927\u5c0f\u5c31\u53ef\u4ee5\u4e86 \u5982\u679c\u6ca1\u6709\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u8bf7\u5c06 SetOutputFilter&nbsp;PHP SetInputFilter&nbsp;PHP LimitRequestBody&nbsp;6550000 \u767b\u5f55\u540e\u590d\u5236 \u5199\u5230apache\u7684\u914d\u7f6e\u6587\u4ef6\u91cc\u9762\u5373\u53ef\u3002 \u63a8\u8350\u6559\u7a0b\uff1a\u300a\/&#8221; target=&#8221;_blank&#8221;&gt;PHPCMS\u6559\u7a0b\u300b \u4ee5\u4e0a\u5c31\u662fPHPCMS\u4e0a\u4f20\u9519\u8bef413\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-31731","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=31731"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31731\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=31731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=31731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=31731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}