{"id":733,"date":"2011-10-14T10:21:28","date_gmt":"2011-10-14T02:21:28","guid":{"rendered":"http:\/\/www.poloo.org\/?p=733"},"modified":"2011-10-14T10:22:07","modified_gmt":"2011-10-14T02:22:07","slug":"%e6%89%8b%e5%8a%a8%e5%85%b3%e9%97%ad%e5%90%84%e7%a7%8d%e7%a8%8b%e5%ba%8fgzip%e6%96%b9%e6%b3%95%ef%bc%88shopex%e3%80%81phpwind%e3%80%81discuz%e7%ad%89%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.poloo.org\/?p=733","title":{"rendered":"\u624b\u52a8\u5173\u95ed\u5404\u79cd\u7a0b\u5e8fGzip\u65b9\u6cd5\uff08shopex\u3001phpwind\u3001discuz\u7b49\uff09"},"content":{"rendered":"<p><strong>1\u3001phpwind\u8bba\u575b\u7cfb\u7edf\uff1a<\/strong><\/p>\n<p>\\data\\bbscache\\config.php<br \/>\n\u4fee\u6539\uff1a<br \/>\n$db_obstart=&#8217;1&#8242;;<br \/>\n\u4e3a<br \/>\n$db_obstart=&#8217;0&#8242;;<\/p>\n<p>\u767b\u5f55\u8bba\u575b\u540e\u53f0\uff0c\u627e\u5230\u8bba\u575b\u6838\u5fc3\u8bbe\u7f6e&#8211;\u6838\u5fc3\u529f\u80fd\u8bbe\u7f6e\uff0c\u7981\u6b62GZIP\u529f\u80fd\u3002<\/p>\n<p>\u540e\u53f0\u767b\u5f55\u5730\u5740\u4e3a\uff1ahttp:\/\/\u60a8\u7684\u57df\u540d\/admin.php<\/p>\n<p><strong>2\u3001discuz\u8bba\u575b\u7cfb\u7edf\uff1a<\/strong><\/p>\n<p>\u65b9\u6cd5\u4e00\uff1a<br \/>\n\u4f7f\u7528ftp\u8fdb\u5165\u8bba\u575b<br \/>\n\u5c06\u00a0 forumdata\/cache\/cache_settings.php \u4e0b\u8f7d\u5230\u672c\u5730\uff0c<\/p>\n<p>\u4fee\u6539\u91cc\u9762\u7684<br \/>\n&#8216;gzipcompress&#8217; =&gt; 1,<\/p>\n<p>\u6539\u6210<br \/>\n&#8216;gzipcompress&#8217; =&gt; 0,<\/p>\n<p><!--more--><\/p>\n<p>\u4fee\u6539\u5b8c\u6210\u540e\u4fdd\u5b58\u3002\u4e0a\u4f20\u56de\u53bb\u3002\u4f60\u7684\u8bba\u575b\u5c31\u53ef\u4ee5\u8bbf\u95ee\u4e86\u3002<\/p>\n<p>\u7136\u540e\u767b\u5f55\u8bba\u575b\u540e\u53f0\uff0c\u627e\u5230\u57fa\u672c\u8bbe\u7f6e&#8211;\u670d\u52a1\u5668\u4f18\u5316\uff0c\u7981\u6b62GZIP\u529f\u80fd\u3002<\/p>\n<p>\u540e\u53f0\u767b\u5f55\u5730\u5740\uff1ahttp:\/\/\u60a8\u7684\u57df\u540d\/logging.php?action=login<\/p>\n<p>\u65b9\u6cd5\u4e8c\uff1a<\/p>\n<p>\u628a\u9644\u4ef6\u91cc\u7684\u7a0b\u5e8f\u4e0a\u4f20\u5230\u4f60\u7684\u8bba\u575b\u6839\u76ee\u5f55\u4e0b\u3002\u8fd0\u884c\u5373\u53ef\u3002<\/p>\n<p><a href=\"http:\/\/www.linwan.net.cn\/upload\/gzip.rar\" target=\"_blank\"><span style=\"color: #4e0a13;\">\u5173\u95edgzip.rar<\/span><\/a><\/p>\n<p>\u8fd0\u884c\u540e\u9875\u9762\u7a7a\u767d\uff0c\u4f46gzip\u5df1\u7ecf\u5173\u95ed\u4e86\u3002\u518d\u6253\u5f00\u9996\u9875\u5373\u53ef<\/p>\n<p>\u65b9\u6cd5\u4e09\uff1a<\/p>\n<p>\u5c1d\u8bd5\u4f7f\u7528tools\u5de5\u5177 \u5347\u7ea7sql\uff1a<\/p>\n<p>Update `cdb_settings` SET `value` = &#8216;0&#8217; Where CONVERT( `variable` USING utf8 ) = &#8216;gzipcompress&#8217; LIMIT 1 ;<\/p>\n<p>tools\u5de5\u5177\u4e0b\u8f7d<br \/>\n<a href=\"http:\/\/www.discuz.net\/thread-761181-1-1.html\"><span style=\"color: #4e0a13;\">http:\/\/www.discuz.net\/thread-761181-1-1.html<\/span><\/a><\/p>\n<p>\u5347\u7ea7\u540e \u6e05\u9664forumdata\/cache\u548cforumdata\/templates\u4e0b\u9762\u7684\u6587\u4ef6\uff0c\u7136\u540e\u91cd\u65b0\u8bbf\u95ee<\/p>\n<p><strong>3\u3001supesite\u7f51\u7ad9\u7cfb\u7edf\uff1a<\/strong><\/p>\n<p>\u767b\u5f55FTP\uff0c\u4fee\u6539data\\system\u76ee\u5f55\u4e0b\u7684config.cache.php\u6587\u4ef6\uff0c\u627e\u5230&#8217;gzipcompress&#8217; =&gt; 1,\uff0c\u6539\u4e3a\uff1a&#8217;gzipcompress&#8217; =&gt; 0,\uff0c\u7136\u540e\u8fdb\u5165\u540e\u53f0\u6b63\u5f0f\u5173\u95ed<\/p>\n<p>SupeSite\/X-Space\u540e\u53f0\u5730\u5740\u4e3a\uff1ahttp:\/\/\u60a8\u7684\u57df\u540d\/?action-login<\/p>\n<p>\u6e05\u9664\u672c\u5730cookie<\/p>\n<p><strong>4\u3001ShopEx \u5546\u57ce\uff1a<\/strong><\/p>\n<p>shopex\u7f51\u5e97\u5546\u57ce\u7cfb\u7edf\u548c\u6211\u4eec\u5e7f\u544a\u51b2\u7a81\u7684\u89e3\u51b3\u65b9\u5f0f\uff1a\uff08\u6d4b\u8bd5\u53ef\u884c\uff09<br \/>\n\u627e\u5230web\/config\/config.php\u6587\u4ef6\u4e0b\u8f7d\u5230\u672c\u5730\u627e\u5230\u8fd9\u4e00\u884c<br \/>\ndefine(&#8216;WITHOUT_GZIP&#8217;,flase);\\\\\u9ed8\u8ba4\u662ffalse .\u5c31\u662f\u542f\u7528GZIP\u529f\u80fd<br \/>\n\u4fee\u6539\u4e3adefine(&#8216;WITHOUT_GZIP&#8217;,true);\u7136\u540e\u4fdd\u5b58\u4e0a\u4f20\u8986\u76d6\u539f\u6765\u7684\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p><strong>5\u3001SaBlog \u535a\u5ba2\uff1a<\/strong><\/p>\n<p>\u767b\u5f55FTP\uff0c\u4e0b\u8f7dcache\/cache_settings.php\u8fd9\u4e2a\u6587\u4ef6\uff0c\u5c06\u7b2c64\u884c\u7684<br \/>\n&#8216;gzipcompress&#8217; =&gt; &#8216;1&#8217;,<br \/>\n\u4fee\u6539\u4e3a<br \/>\n&#8216;gzipcompress&#8217; =&gt; &#8216;0&#8217;,<br \/>\n\u7136\u540e\u4e0a\u4f20\u8986\u76d6\u56de\u53bb\u5373\u53ef\u3002<\/p>\n<p>SaBlog \u535a\u5ba2\u540e\u53f0\u5730\u5740\u4e3a\uff1ahttp:\/\/\u60a8\u7684\u57df\u540d\/?action-login<\/p>\n<p><strong>6\u3001\u52a8\u7f51PHP\u7248\u672c\u8bba\u575b\uff1a<\/strong><\/p>\n<p>\u767b\u5f55FTP\uff0c\u4e0b\u8f7d\u8bba\u575b\u6839\u76ee\u5f55\u4e0b\u7684global.php\uff0c\u67e5\u627e\u4ee5\u4e0b\u5185\u5bb9\uff0c<br \/>\nif (!$zliboutputenable AND function_exists(&#8216;ob_gzhandler&#8217;)) {<br \/>\n$db_obstart = 1;<br \/>\n\u4fee\u6539\u4e3a<br \/>\nif (!$zliboutputenable AND function_exists(&#8216;ob_gzhandler&#8217;)) {<br \/>\n$db_obstart = 0;<br \/>\n\u7136\u540e\u4e0a\u4f20\u8986\u76d6\u5373\u53ef\u3002<\/p>\n<p><strong>7\u3001Ecshop\uff1a<\/strong><\/p>\n<p>ECSHOP \u7ba1\u7406\u4e2d\u5fc3 &#8211; \u5546\u5e97\u8bbe\u7f6e -\u57fa\u672c\u8bbe\u7f6e-\u662f\u5426\u542f\u7528Gzip\u6a21\u5f0f: \u7981\u7528<\/p>\n<p><strong>8.<span style=\"font-family: Verdana;\">PHPCMS\u7cfb\u7edf\uff1a<\/span><\/strong><\/p>\n<p><span style=\"font-family: Verdana;\">\u89e3\u51b3\u65b9\u6cd5\uff1apackage\\caches\\configs\u00a0 \u5230\u8fd9\u4e2a\u76ee\u5f55\u627e\u5230system.php ,\u6253\u5f00\u540e\u627e\u5230gzip\u9009\u9879\uff0c\u540e\u9762\u76841\uff0c\u6539\u4e3a0.\u4e0a\u4f20\u8986\u76d6\u3002\u7136\u540e\u4f60\u9700\u8981\u91cd\u65b0\u5b89\u88c5\u4e00\u6b21\u3002<\/span><\/p>\n<p>\u524d\u6bb5\u65f6\u95f4\uff0c\u7981\u8bba\u575b\u7981\u5f97\u5389\u5bb3\uff1b\u56e0\u6b64\uff0c\u5f88\u591a\u4e3b\u673a\u5546\u4e0d\u5f97\u4e0d\u5b89\u88c5\u4e86\u4e3b\u673a\u5173\u952e\u5b57\u8fc7\u6ee4\u7cfb\u7edf\uff0c\u8fd9\u4e2a\u661f\u5916\u7684\u76d1\u63a7\u8fc7\u6ee4\u7cfb\u7edf\uff0c\u65b0\u7248\u672c\u52a0\u5165\u4e86\u5173\u95edgzip\u7684\u9009\u9879\uff08\u56e0\u4e3a gzip\u6a21\u5f0f\u662f\u52a0\u5bc6\u538b\u7f29\u4f20\u8f93\uff0c\u5982\u679c\u4e0d\u5173\u95ed\u8fd9\u4e2a\u9009\u9879\uff0c\u5c31\u65e0\u6cd5\u76d1\u63a7\u8fc7\u6ee4\u5173\u952e\u5b57\uff09\uff0c\u7531\u6b64\u5c31\u5f15\u8d77\u4e86\u4e00\u4e9bphp\u7cfb\u7edf\u5173\u95edgzip\u7684\u65b9\u6cd5\u8ba8\u8bba\uff0c\u5f88\u591a\u670b\u53cb\u5728\u8be2\u95ee\u4e00\u4e9b\u7cfb\u7edf \u7684\u5173\u95ed\u65b9\u6cd5\uff0c\u5c31\u6b64\u7b80\u5355\u603b\u7ed3\u4e00\u4e9b\u5e38\u7528\u7684\uff1b\u5982\u679c\u662f\u76f4\u63a5\u767b\u9646\u7cfb\u7edf\u540e\u53f0\u4fee\u6539\uff0c\u5c31\u9700\u8981\u7531\u4e3b\u673a\u5546\u6765\u63d0\u4f9b\u5408\u4f5c\uff0c\u6682\u65f6\u5173\u95ed\u76d1\u63a7\u8fc7\u6ee4\u7cfb\u7edf\u6216\u8005\u5173\u95ed\u81ea\u5df1\u57df\u540d\u7684\u76d1\u63a7\uff0c\u5982\u679c\u4e3b\u673a\u5546 \u65e0\u6cd5\u63d0\u4f9b\u5408\u4f5c\uff08\u5f53\u7136\uff0c\u8fd9\u4e0d\u4e00\u5b9a\u662f\u4e0d\u613f\u610f\uff0c\u800c\u662f\u6709\u5173\u5b89\u5168\u64cd\u4f5c\u7b49\u65b9\u9762\u7684\u95ee\u9898\uff09\uff0c\u5c31\u9700\u8981\u5148\u624b\u52a8\u5173\u95ed\uff0c\u7136\u540e\u767b\u9646\u540e\u53f0\u518d\u5173\u95ed\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001phpwind\u8bba\u575b\u7cfb\u7edf\uff1a \\data\\bbscache\\conf&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[53,32,47,52],"class_list":["post-733","post","type-post","status-publish","format-standard","hentry","category-Cate","tag-gzip","tag-32","tag-47","tag-52"],"_links":{"self":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=733"}],"version-history":[{"count":2,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/733\/revisions"}],"predecessor-version":[{"id":735,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/733\/revisions\/735"}],"wp:attachment":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}