{"id":63377,"date":"2025-04-29T15:39:36","date_gmt":"2025-04-29T07:39:36","guid":{"rendered":"https:\/\/fwq.ai\/blog\/63377\/"},"modified":"2025-04-29T15:39:36","modified_gmt":"2025-04-29T07:39:36","slug":"phpstudy%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e6%80%8e%e4%b9%88%e6%94%b9-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/63377\/","title":{"rendered":"phpstudy\u914d\u7f6e\u6587\u4ef6\u600e\u4e48\u6539"},"content":{"rendered":"<blockquote><p>\n  \u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u4fee\u6539 phpstudy \u914d\u7f6e\u6587\u4ef6\uff1a\u627e\u5230\u914d\u7f6e\u6587\u4ef6\uff08windows\uff1ac:windowsphpstudyphpphp.ini\uff1bmac\uff1a\/applications\/phpstudy\/php\/php.ini\uff09\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00\u5e76\u67e5\u627e\u8981\u4fee\u6539\u7684\u8bbe\u7f6e\u7f16\u8f91\u8bbe\u7f6e\u7684\u503c\uff0c\u5982\u4fee\u6539\u65f6\u533a\uff1adate.timezone = asia\/shanghai\u4fdd\u5b58\u66f4\u6539\u5e76\u91cd\u542f apache \u670d\u52a1\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/02\/2024040215571712233.jpg\" class=\"aligncenter\" title=\"phpstudy\u914d\u7f6e\u6587\u4ef6\u600e\u4e48\u6539\u63d2\u56fe\" alt=\"phpstudy\u914d\u7f6e\u6587\u4ef6\u600e\u4e48\u6539\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u4fee\u6539 phpStudy \u914d\u7f6e\u6587\u4ef6<\/strong><\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u627e\u5230\u914d\u7f6e\u6587\u4ef6<\/strong><\/p>\n<ul>\n<li>Windows \u7cfb\u7edf\uff1aC:WindowsphpStudyphpphp.ini<\/li>\n<li>Mac \u7cfb\u7edf\uff1a\/Applications\/phpStudy\/php\/php.ini<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 2\uff1a\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/strong><\/p>\n<ul>\n<li>\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982\u8bb0\u4e8b\u672c\u3001Sublime Text\uff09\u6253\u5f00 php.ini \u6587\u4ef6\u3002<\/li>\n<li>\u627e\u5230\u8981\u4fee\u6539\u7684\u8bbe\u7f6e\u3002<\/li>\n<li>\u7f16\u8f91\u8be5\u8bbe\u7f6e\u7684\u503c\u3002<\/li>\n<\/ul>\n<p><strong>\u5e38\u89c1\u4fee\u6539<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p><strong>\u65f6\u533a<\/strong><\/p>\n<p>\u8981\u4fee\u6539\u65f6\u533a\uff0c\u8bf7\u641c\u7d22\u201cdate.timezone\u201d\u8bbe\u7f6e\u5e76\u5728\u7b49\u53f7\u540e\u9762\u8f93\u5165\u6240\u9700\u7684\u65f6\u533a\u3002<br \/>\u4f8b\u5982\uff1adate.timezone = Asia\/Shanghai<\/p>\n<p><strong>\u5185\u5b58\u9650\u5236<\/strong><\/p>\n<p>\u8981\u4fee\u6539\u5185\u5b58\u9650\u5236\uff0c\u8bf7\u641c\u7d22\u201cmemory_limit\u201d\u8bbe\u7f6e\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a\u6240\u9700\u7684\u503c\u3002<br \/>\u4f8b\u5982\uff1amemory_limit = 512M<\/p>\n<p><strong>\u6700\u5927\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f<\/strong><\/p>\n<p>\u8981\u4fee\u6539\u6700\u5927\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f\uff0c\u8bf7\u641c\u7d22\u201cupload_max_filesize\u201d\u548c\u201cpost_max_size\u201d\u8bbe\u7f6e\u5e76\u5c06\u5b83\u4eec\u8bbe\u7f6e\u4e3a\u76f8\u540c\u7684\u503c\u3002<br \/>\u4f8b\u5982\uff1a<br \/>upload_max_filesize = 10M<br \/>post_max_size = 10M<\/p>\n<p><strong>\u6b65\u9aa4 3\uff1a\u4fdd\u5b58\u66f4\u6539<\/strong><\/p>\n<ul>\n<li>\u4fdd\u5b58\u4fee\u6539\u540e\u7684 php.ini \u6587\u4ef6\u3002<\/li>\n<li>\u91cd\u65b0\u542f\u52a8 Apache \u670d\u52a1\u3002<\/li>\n<\/ul>\n<p><strong>\u6ce8\u610f\uff1a<\/strong><\/p>\n<ul>\n<li>\u4e0d\u540c\u7684 phpStudy \u7248\u672c\u53ef\u80fd\u4f7f\u7528\u4e0d\u540c\u7684\u914d\u7f6e\u6587\u4ef6\u8def\u5f84\u3002<\/li>\n<li>\u5728\u4fee\u6539\u4efb\u4f55\u8bbe\u7f6e\u4e4b\u524d\uff0c\u8bf7\u52a1\u5fc5\u5907\u4efd php.ini \u6587\u4ef6\u3002<\/li>\n<li>\u5982\u679c\u4e0d\u786e\u5b9a\u5982\u4f55\u4fee\u6539\u7279\u5b9a\u8bbe\u7f6e\uff0c\u8bf7\u53c2\u8003 phpStudy \u5b98\u65b9\u6587\u6863\u6216\u5728\u7ebf\u8d44\u6e90\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u914d\u7f6e\u6587\u4ef6\u600e\u4e48\u6539\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8FDCServers\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u4fee\u6539 phpstudy \u914d\u7f6e\u6587\u4ef6\uff1a\u627e\u5230\u914d\u7f6e\u6587\u4ef6\uff08windows\uff1ac:windowsphpstudyphpphp.ini\uff1bmac\uff1a\/applications\/phpstudy\/php\/php.ini\uff09\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00\u5e76\u67e5\u627e\u8981\u4fee\u6539\u7684\u8bbe\u7f6e\u7f16\u8f91\u8bbe\u7f6e\u7684\u503c\uff0c\u5982\u4fee\u6539\u65f6\u533a\uff1adate.timezone = asia\/shanghai\u4fdd\u5b58\u66f4\u6539\u5e76\u91cd\u542f apache \u670d\u52a1 \u5982\u4f55\u4fee\u6539 phpStudy \u914d\u7f6e\u6587\u4ef6 \u6b65\u9aa4 1\uff1a\u627e\u5230\u914d\u7f6e\u6587\u4ef6 Windows \u7cfb\u7edf\uff1aC:WindowsphpStudyphpphp.ini Mac \u7cfb\u7edf\uff1a\/Applications\/phpStudy\/php\/php.ini \u6b65\u9aa4 2\uff1a\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6 \u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982\u8bb0\u4e8b\u672c\u3001Sublime Text\uff09\u6253\u5f00 php.ini \u6587\u4ef6\u3002 \u627e\u5230\u8981\u4fee\u6539\u7684\u8bbe\u7f6e\u3002 \u7f16\u8f91\u8be5\u8bbe\u7f6e\u7684\u503c\u3002 \u5e38\u89c1\u4fee\u6539 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u65f6\u533a \u8981\u4fee\u6539\u65f6\u533a\uff0c\u8bf7\u641c\u7d22\u201cdate.timezone\u201d\u8bbe\u7f6e\u5e76\u5728\u7b49\u53f7\u540e\u9762\u8f93\u5165\u6240\u9700\u7684\u65f6\u533a\u3002\u4f8b\u5982\uff1adate.timezone = Asia\/Shanghai \u5185\u5b58\u9650\u5236 \u8981\u4fee\u6539\u5185\u5b58\u9650\u5236\uff0c\u8bf7\u641c\u7d22\u201cmemory_limit\u201d\u8bbe\u7f6e\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a\u6240\u9700\u7684\u503c\u3002\u4f8b\u5982\uff1amemory_limit = 512M \u6700\u5927\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f \u8981\u4fee\u6539\u6700\u5927\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f\uff0c\u8bf7\u641c\u7d22\u201cupload_max_filesize\u201d\u548c\u201cpost_max_size\u201d\u8bbe\u7f6e\u5e76\u5c06\u5b83\u4eec\u8bbe\u7f6e\u4e3a\u76f8\u540c\u7684\u503c\u3002\u4f8b\u5982\uff1aupload_max_filesize = 10Mpost_max_size = 10M \u6b65\u9aa4 3\uff1a\u4fdd\u5b58\u66f4\u6539 \u4fdd\u5b58\u4fee\u6539\u540e\u7684 php.ini \u6587\u4ef6\u3002 \u91cd\u65b0\u542f\u52a8 Apache \u670d\u52a1\u3002 \u6ce8\u610f\uff1a \u4e0d\u540c\u7684 phpStudy \u7248\u672c\u53ef\u80fd\u4f7f\u7528\u4e0d\u540c\u7684\u914d\u7f6e\u6587\u4ef6\u8def\u5f84\u3002 \u5728\u4fee\u6539\u4efb\u4f55\u8bbe\u7f6e\u4e4b\u524d\uff0c\u8bf7\u52a1\u5fc5\u5907\u4efd php.ini \u6587\u4ef6\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-63377","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/63377","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=63377"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/63377\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=63377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=63377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=63377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}