{"id":31925,"date":"2024-11-25T13:31:33","date_gmt":"2024-11-25T05:31:33","guid":{"rendered":"https:\/\/fwq.ai\/blog\/31925\/"},"modified":"2024-11-25T13:31:33","modified_gmt":"2024-11-25T05:31:33","slug":"%e8%a7%a3%e5%86%b3%e5%ae%89%e8%a3%85dedecms%e6%97%b6%e4%ba%a7%e7%94%9f%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/31925\/","title":{"rendered":"\u89e3\u51b3\u5b89\u88c5dedecms\u65f6\u4ea7\u751f\u7684\u95ee\u9898"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202102\/19\/2021021909355727376.jpg\" class=\"aligncenter\" title=\"\u89e3\u51b3\u5b89\u88c5dedecms\u65f6\u4ea7\u751f\u7684\u95ee\u9898\u63d2\u56fe\" alt=\"\u89e3\u51b3\u5b89\u88c5dedecms\u65f6\u4ea7\u751f\u7684\u95ee\u9898\u63d2\u56fe\" \/><\/p>\n<p>\u5b89\u88c5\u65f6\u4ea7\u751f\u7684\u95ee\u9898\uff1a<\/p>\n<p>MySQL \u652f\u6301 On [\u00d7]Off(\u4e0d\u652f\u6301\u65e0\u6cd5\u4f7f\u7528\u672c\u7cfb\u7edf)<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b\uff0c\u5e0c\u671b\u53ef\u4ee5\u5e2e\u52a9\u5230\u5927\u5bb6\uff1a<\/p>\n<p>\u672c\u6587php\u7248\u672c\uff1aphp-5.1.1-Win32<\/p>\n<p>\u6309\u7167\u4e0b\u8f7d\u7684discuz!4.0\u4e2d\u7684\u7528\u6237\u624b\u518c\u914d\u7f6e\u73af\u5883\u3002<\/p>\n<p>\u6539\u52a8\u90e8\u5206\uff1a<\/p>\n<p>1\u3001\u5bf9\u4e8ephp.ini\u6587\u4ef6<br \/>\u8fdb \u5165 C:PHP\uff0c\u5c06 php.ini-dist \u590d\u5236\u4e00\u4efd\u653e\u5230 C:WINNT\uff08 Windows XP\/2003 \u4e0b\u4e3a C:Windows \uff09\u5185\uff0c\u6539\u540d\u4e3a php.ini\uff0c\u7136\u540e\u7528\u8bb0\u4e8b\u672c\u6253\u5f00\uff0c\u5229\u7528\u8bb0\u4e8b\u672c\u7684\u67e5\u627e\u529f\u80fd\u641c\u7d22 extension_dir = &#8220;.\/&#8221;\uff0c\u5e76\u5c06\u5176\u8def\u5f84\u6307\u5230\u4f60\u7684 PHP \u76ee\u5f55\u4e0b\u7684 extensions \u76ee\u5f55\uff0c\u6bd4\u5982\uff1aextension_dir = &#8220;C:PHPext&#8221;\uff1b\u518d\u641c\u7d22 register_globals = Off\uff0c\u5c06 Off \u6539\u6210 On\uff1b<br \/>\u67e5\u627e ;extension=php_mysql.dll\uff0c\u5c06\u524d\u9762\u7684\u5f15\u53f7\u201c\uff1b\u201d\u53bb\u6389\u3002<br \/>2\u3001\u624b\u518c\u4e2d\u5173\u4e8e\u914d\u7f6eIIS\u7684\u8bf4\u660e\uff0c\u5c06\u5176\u4e2d\u7684\u201cPHPsapiphp4isapi.dll\u201d\u6539\u4e3aphp\u76ee\u5f55\u4e0b\u7684\u201cphp5isapi.dll\u201d<br \/>3\u3001\u91cd\u8981\uff1a\u590d\u5236php\u76ee\u5f55\u4e0b\u7684libmysql.dll\u6587\u4ef6\u5230system32\u4e0b\u3002<\/p>\n<p>\u91cd\u65b0\u542f\u52a8IIS\uff08\u6216\u662fApache\u4e5f\u8981\u91cd\u542f\u4e00\u4e0b\uff09\uff1a<br \/>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e0b\u9010\u4e00\u6267\u884c\u4e00\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>net&nbsp;stop&nbsp;w3svc\nnet&nbsp;stop&nbsp;iisadmin\nnet&nbsp;start&nbsp;w3svc<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u81ea\u5df1\u5728\u7f51\u4e0a\u627e\u5230\u7684\u8d44\u6599\uff0c\u5927\u5bb6\u7167\u7740\u53ef\u4ee5\u89e3\u51b3\uff01<\/p>\n<p>Re:GD \u652f\u6301 On [\u00d7]Off(\u4e0d\u652f\u6301\u5c06\u5bfc\u81f4\u4e0e\u56fe\u7247\u76f8\u5173\u7684\u5927\u591a\u6570\u529f\u80fd\u65e0\u6cd5\u4f7f\u7528\u6216\u5f15\u53d1\u8b66\u544a)<\/p>\n<p>\u4f60\u8981\u662f\u7528\u7684IIS\u914d\u7f6e\u7684PHP<br \/>\u628a\u90a3\u4e2a\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684php.ini-dist \u6587\u4ef6\uff0c\u91cd\u547d\u540d\u4e3a php.ini \uff0c\u5e76\u590d\u5236\u5230\u7cfb\u7edf\u76d8c\u76d8\u7684Windows\u76ee\u5f55\u4e0b<br \/>\u6253\u5f00c:windowsphp.ini\u6587\u4ef6<br \/>\u627e\u5230\uff1a<br \/>extension_dir = &#8220;.\/&#8221;<br \/>\u6539\u4e3a\uff1a<br \/>extension_dir = &#8220;d:phpext&#8221;(\u5c31\u662f\u4f60 PHP\u7684\u5b89\u88c5\u76ee\u5f55\u8def\u5f84)<br \/>\u627e\u5230\uff1a<br \/>;extension=php_mbstring.dll<br \/>\u6539\u4e3a\uff1a<br \/>extension=php_mbstring.dll<br \/>\u627e\u5230\uff1a<br \/>;extension=php_gd2.dll<br \/>\u6539\u4e3a\uff1a<br \/>extension=php_gd2.dll<br \/>\u627e\u5230\uff1a<br \/>;extension=php_mysql.dll<br \/>\u6539\u4e3a\uff1a<br \/>extension=php_mysql.dll<br \/>\u627e\u5230\uff1a<br \/>;extension=php_mcrypt.dll<br \/>\u6539\u4e3a\uff1a<br \/>extension=php_mcrypt.dll<br \/>\u5176\u5b9e\u5c31\u662f\u628a\u5b83\u4eec\u524d\u8fb9\u7684\u5206\u53f7\u53bb\u6389,\u7136\u540e\u4fdd\u5b58,\u8981\u662f\u5728VISTA\u7cfb\u7edf\u4e0b,\u8fd8\u5f97\u4fdd\u5b58\u5230\u5176\u4ed6\u5730\u65b9,\u518d\u526a\u5207\u8fc7\u6765<\/p>\n<p>\u518d\u628aphp(\u5b89\u88c5\u76ee\u5f55)\u76ee\u5f55\u4e0b\u7684 php5ts.dll , libmysql.dll \u590d\u5236\u5230\u76ee\u5f55 C:WindowsSystem32\u4e0b.<br \/>\u628a phpext\u76ee\u5f55\u4e0b\u7684 php_gd2.dll , php_mysql.dll , php_mbstring.dll \u6587\u4ef6\u4e5f\u590d\u5236\u5230C:WindowsSystem32\u4e0b\u3002\uff08\u5982\u679c\u6ca1\u6709\u52a0\u8f7d php_gd2.dll php\u5c06\u4e0d\u80fd\u5904\u7406\u56fe\u50cf\u3002\u6ca1\u6709\u52a0\u8f7dphp_mysql.dll php\u5c06\u4e0d\u652f\u6301mysql\u51fd\u6570\u5e93\uff0cphp_mbstring.dll\u5728\u540e\u9762\u4f7f\u7528phpmyadmin\u65f6\u652f\u6301\u5bbd\u5b57\u7b26\uff09<\/p>\n<p>\u7136\u540e\u91cd\u542fIIS,\u5237\u65b0\u7f51\u7ad9,\u5c31\u53ef\u4ee5\u4e86,\u5f53\u7136\u4e5f\u5f97\u88c5mysql<\/p>\n<p>DedeCMS\u6ca1\u6709\u9009\u62e9\u4e0a\u4f20\u7684\u6587\u4ef6\u6216\u9009\u62e9\u7684\u6587\u4ef6\u5927\u5c0f\u8d85\u51fa\u5927\u5c0f<\/p>\n<p>\u7528DEDECMS\u4e0a\u4f20\u65f6\uff0c\u51fa\u73b0\u201c\u4f60\u6ca1\u6709\u9009\u62e9\u4e0a\u4f20\u7684\u6587\u4ef6\u6216\u9009\u62e9\u7684\u6587\u4ef6\u5927\u5c0f\u8d85\u51fa\u9650\u5236\u201d\uff0c\u6211\u660e\u660e\u4e0a\u4f20\u4e86\u554a\uff0c\u4e8e\u662f\u5c31\u6000\u7591\u662f\u54ea\u4e2a\u5730\u65b9\u9650\u5236\u4e86\u4e0a\u4f20\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u5728dedecms\u7cfb\u7edf\u57fa\u672c\u53c2\u6570\u91cc\u627e\u6765\u627e\u53bb\uff0c\u53ea\u627e\u5230\u4e00\u4e2a\u4f1a\u5458\u9644\u4ef6\u5927\u5c0f\u7684\u8bbe\u7f6e\uff0c\u6211\u8fd8\u6539\u4e86\u4e00\u4e0b\uff0c\u60f3\u7740\u5c31\u4e0d\u9876\u7528\uff0c\u56e0\u4e3a\u6211\u5c31\u6ca1\u6709\u5f00\u4f1a\u5458\u529f\u80fd\u554a\uff01\u663e\u7136\u4e0d\u662f\u8fd9\u4e2a\u5730\u65b9\u3002\u4e8e\u662f\u4e0a\u7f51\u641c\u4e86\u4e00\u4e0b\uff0cO(\u2229_\u2229)O\u54c8\u54c8~\uff0c\u627e\u5230\u7b54\u6848\u4e86\uff01\uff01\uff01\uff08\u641c\u7d22\u662f\u6700\u597d\u7684\u8001\u5e08\uff09\uff1a<\/p>\n<p>\u67e5\u627ephp\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5728php.ini\u4e2d\u53d1\u73b0\u4e86\u8fd9\u6837\u51e0\u884c\uff1a<\/p>\n<p>;&nbsp;Maximum&nbsp;allowed&nbsp;size&nbsp;for&nbsp;uploaded&nbsp;files.<\/p>\n<p>upload_max_filesize&nbsp;=&nbsp;2M\uff08PHP\u9ed8\u8ba4\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f\u4e3a2M\uff09<\/p>\n<p>\u6211\u628a\u5b83\u6539\u4e3a\u4e8610M<\/p>\n<p>\u91cd\u542f\u670d\u52a1\u5668\u540e\u5c31\u53ef\u4ee5\u4e0a\u4f2010M\u4ee5\u5185\u7684\u6587\u4ef6\u4e86\uff0c(*^__^*)&nbsp;\u563b\u563b\u2026\u2026<\/p>\n<p>\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u6211\u8fd8\u53d1\u73b0\u4e0b\u9762\u7684\u4e1c\u4e1c\uff1a<\/p>\n<p>;&nbsp;Maximum&nbsp;size&nbsp;of&nbsp;POST&nbsp;data&nbsp;that&nbsp;PHP&nbsp;will&nbsp;accept.<\/p>\n<p>post_max_size&nbsp;=&nbsp;2M<\/p>\n<p>\u539f\u6765PHP\u8fd8\u53ef\u4ee5\u914d\u7f6ePOST\u6570\u636e\u7684\u6700\u5927\u5c3a\u5bf8\u3002<\/p>\n<p>\u4ee5\u540e\u5728\u9047\u5230\u4e0d\u80fd\u4e0a\u4f20\u7684\u60c5\u51b5\uff0c\u518d\u6539\u6539\u8fd9\u91cc\u5427\uff01<\/p>\n<p>\u5176\u5b9e\u5728\u767b\u9646dedecms\u540e\u7684\u9996\u9875\u4e2d\uff0c\u7cfb\u7edf\u57fa\u672c\u4fe1\u606f\u91cc\u7684PHP\u73af\u5883\u6458\u8981\u91cc\u5c31\u5df2\u7ecf\u663e\u793a\u4e86\u201c\u652f\u6301\u4e0a\u4f20\u7684\u6700\u5927\u6587\u4ef6\u201d\u8fd9\u4e00\u9879\u7684\u3002<\/p>\n<p>\u76f8\u5173\u63a8\u8350\uff1a<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u89e3\u51b3\u5b89\u88c5\u65f6\u4ea7\u751f\u7684\u95ee\u9898\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>\u5b89\u88c5\u65f6\u4ea7\u751f\u7684\u95ee\u9898\uff1a MySQL \u652f\u6301 On [\u00d7]Off(\u4e0d\u652f\u6301\u65e0\u6cd5\u4f7f\u7528\u672c\u7cfb\u7edf) \u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b\uff0c\u5e0c\u671b\u53ef\u4ee5\u5e2e\u52a9\u5230\u5927\u5bb6\uff1a \u672c\u6587php\u7248\u672c\uff1aphp-5.1.1-Win32 \u6309\u7167\u4e0b\u8f7d\u7684discuz!4.0\u4e2d\u7684\u7528\u6237\u624b\u518c\u914d\u7f6e\u73af\u5883\u3002 \u6539\u52a8\u90e8\u5206\uff1a 1\u3001\u5bf9\u4e8ephp.ini\u6587\u4ef6\u8fdb \u5165 C:PHP\uff0c\u5c06 php.ini-dist \u590d\u5236\u4e00\u4efd\u653e\u5230 C:WINNT\uff08 Windows XP\/2003 \u4e0b\u4e3a C:Windows \uff09\u5185\uff0c\u6539\u540d\u4e3a php.ini\uff0c\u7136\u540e\u7528\u8bb0\u4e8b\u672c\u6253\u5f00\uff0c\u5229\u7528\u8bb0\u4e8b\u672c\u7684\u67e5\u627e\u529f\u80fd\u641c\u7d22 extension_dir = &#8220;.\/&#8221;\uff0c\u5e76\u5c06\u5176\u8def\u5f84\u6307\u5230\u4f60\u7684 PHP \u76ee\u5f55\u4e0b\u7684 extensions \u76ee\u5f55\uff0c\u6bd4\u5982\uff1aextension_dir = &#8220;C:PHPext&#8221;\uff1b\u518d\u641c\u7d22 register_globals = Off\uff0c\u5c06 Off \u6539\u6210 On\uff1b\u67e5\u627e ;extension=php_mysql.dll\uff0c\u5c06\u524d\u9762\u7684\u5f15\u53f7\u201c\uff1b\u201d\u53bb\u6389\u30022\u3001\u624b\u518c\u4e2d\u5173\u4e8e\u914d\u7f6eIIS\u7684\u8bf4\u660e\uff0c\u5c06\u5176\u4e2d\u7684\u201cPHPsapiphp4isapi.dll\u201d\u6539\u4e3aphp\u76ee\u5f55\u4e0b\u7684\u201cphp5isapi.dll\u201d3\u3001\u91cd\u8981\uff1a\u590d\u5236php\u76ee\u5f55\u4e0b\u7684libmysql.dll\u6587\u4ef6\u5230system32\u4e0b\u3002 \u91cd\u65b0\u542f\u52a8IIS\uff08\u6216\u662fApache\u4e5f\u8981\u91cd\u542f\u4e00\u4e0b\uff09\uff1a\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e0b\u9010\u4e00\u6267\u884c\u4e00\u4e0b\u547d\u4ee4\uff1a net&nbsp;stop&nbsp;w3svc net&nbsp;stop&nbsp;iisadmin net&nbsp;start&nbsp;w3svc \u767b\u5f55\u540e\u590d\u5236 \u81ea\u5df1\u5728\u7f51\u4e0a\u627e\u5230\u7684\u8d44\u6599\uff0c\u5927\u5bb6\u7167\u7740\u53ef\u4ee5\u89e3\u51b3\uff01 Re:GD \u652f\u6301 On [\u00d7]Off(\u4e0d\u652f\u6301\u5c06\u5bfc\u81f4\u4e0e\u56fe\u7247\u76f8\u5173\u7684\u5927\u591a\u6570\u529f\u80fd\u65e0\u6cd5\u4f7f\u7528\u6216\u5f15\u53d1\u8b66\u544a) \u4f60\u8981\u662f\u7528\u7684IIS\u914d\u7f6e\u7684PHP\u628a\u90a3\u4e2a\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684php.ini-dist \u6587\u4ef6\uff0c\u91cd\u547d\u540d\u4e3a php.ini \uff0c\u5e76\u590d\u5236\u5230\u7cfb\u7edf\u76d8c\u76d8\u7684Windows\u76ee\u5f55\u4e0b\u6253\u5f00c:windowsphp.ini\u6587\u4ef6\u627e\u5230\uff1aextension_dir = &#8220;.\/&#8221;\u6539\u4e3a\uff1aextension_dir = &#8220;d:phpext&#8221;(\u5c31\u662f\u4f60 [&hellip;]<\/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-31925","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31925","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=31925"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31925\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=31925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=31925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=31925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}