{"id":1239,"date":"2005-07-19T17:39:00","date_gmt":"2005-07-19T09:39:00","guid":{"rendered":"http:\/\/www.brofive.org\/?p=1239"},"modified":"2018-05-03T22:28:36","modified_gmt":"2018-05-03T14:28:36","slug":"bugzilla-windows-%e5%ae%89%e8%a3%85%e6%89%8b%e5%86%8c","status":"publish","type":"post","link":"http:\/\/www.brofive.net\/?p=1239","title":{"rendered":"Bugzilla Windows \u5b89\u88c5\u624b\u518c"},"content":{"rendered":"<p><strong><font size=\"4\">Bugzilla Windows \u5b89\u88c5\u624b\u518c<\/font><\/strong> <\/p>\n<p><font size=\"4\">\u94b1\u4e94\u54e5<\/font> <\/p>\n<p><a href=\"http:\/\/spaces.msn.com\/members\/qianwuge\/\"><font size=\"4\">http:\/\/spaces.msn.com\/members\/qianwuge\/<\/font><\/a> <\/p>\n<p><font size=\"4\">July 19,2005<\/font> <\/p>\n<p><font size=\"4\">(\u9488\u5bf9bugzilla 2.18.1\u7248\u672c)<\/font> <\/p>\n<p><font size=\"4\">\u9700\u8981\u7684\u5176\u4ed6\u6a21\u5757<br \/>1. Apache Server, \u6211\u7528\u4e86\u6700\u65b0\u76842.0.54<br \/>2. Active Perl, \u4f7f\u7528 ActivePerl-5.8.7.813-MSWin32-x86-148120.msi, \u8fd9\u91cc\u6709\u53cd\u590d, \u540e\u6765\u5f97\u4ee5\u89e3\u51b3, \u53c2\u89c1\u540e\u9762<br \/>\u6ce8: Active Perl 5.6.1.638 \u5df2\u7ecf\u65e0\u6cd5\u5de5\u4f5c, \u56e0\u4e3aBugzilla\u9700\u8981Active Perl 5.8.1+<\/font> <\/p>\n<p><font size=\"4\">set http_proxy=http:\/\/ch.proxy.lucent.com:8000<br \/>ppm repository add landfill <\/font><a href=\"http:\/\/www.landfill.bugzilla.org\/ppm\/\"><font size=\"4\">http:\/\/www.landfill.bugzilla.org\/ppm\/<\/font><\/a><br \/><font size=\"4\">ppm install modules<\/font> <\/p>\n<p><font size=\"4\">3. MySQL: \u4f7f\u7528mysql-4.0.15-win.zip, \u539f\u672c\u5b89\u88c5\u7684\u5c45\u7136\u662f3.23.xx, \u6bd4\u9700\u8981\u7684\u7248\u672c\u4f4e<br \/>\u4f46\u662f\u56e0\u4e3a\u539f\u6765\u7684\u6570\u636e\u5e93\u91cc\u9762\u5df2\u7ecf\u5b89\u88c5\u4e86AgentX\u7684\u6570\u636e, \u6240\u4ee5\u9996\u5148\u5b89\u88c5phpmyadmin, \u5bfc\u51faAgentX\u7684\u6570\u636e\u5e93<br \/>\u7136\u540e\u8986\u76d6\u5b89\u88c5, \u542f\u52a8\u670d\u52a1\u5668, \u5c45\u7136\u6570\u636e\u5e93\u90fd\u5728, user Table\u91cc\u9762\u7528\u6237\u4e5f\u90fd\u5728, \u5f3a!<\/font> <\/p>\n<p><font size=\"4\">mysql&gt; GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, DROP, REFERENCES ON bugs.* to<\/font><a><font size=\"4\">bugs@localhost<\/font><\/a><font size=\"4\"> IDENTIFIED BY&nbsp; &#8216;bugs_password&#8217;;<\/font> <\/p>\n<p><font size=\"4\">4. php:php-4.3.11-Win32.zip, \u4e3b\u8981\u662f\u4e3a\u4e86\u5b89\u88c5phpmyadmin<br \/>5. phpmyadmin: phpMyAdmin-2.6.3-rc1.tar.gz<\/font> <\/p>\n<p><font size=\"4\">\u5b89\u88c5\u548c\u914d\u7f6e:<br \/>\u5173\u952e\u5728\u4e8e\u4f7f\u7528perl checksetup.pl, \u8fd9\u4e2a\u811a\u672c\u7ed9\u51fa\u4e86\u6240\u6709\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6cd5<\/font> <\/p>\n<p><font size=\"4\">\u4fee\u6539:<br \/>2.4.1.3. Code changes required to run on Win32<br \/>Bugzilla on Win32 is mostly supported out of the box; one remaining issue is related to bug email. To make bug email work on Win32 (until bug 49893 lands), the simplest way is to have the Net::SMTP Perl module installed and change these lines in the file Bugzilla\/Bugmail.pm:<\/font> <\/p>\n<p><font size=\"4\">open(SENDMAIL, &#8220;|\/usr\/lib\/sendmail $sendmailparam -t -i&#8221;) ||<br \/>die &#8220;Can&#8217;t open sendmail&#8221;;<\/font> <\/p>\n<p><font size=\"4\">print SENDMAIL trim($msg) . &#8220;\\n&#8221;;<br \/>close SENDMAIL;<\/font> <\/p>\n<p><font size=\"4\">to<\/font> <\/p>\n<p><font size=\"4\">use Net::SMTP;<br \/>my $smtp_server = &#8216;smtp.mycompany.com&#8217;;&nbsp; # change this<\/font> <\/p>\n<p><font size=\"4\">($enableSendMail &amp;&amp; $rcpt_to) || return;<\/font> <\/p>\n<p><font size=\"4\"># Use die on error, so that the mail will be in the &#8216;unsent mails&#8217; and<br \/># can be sent from the sanity check page.<br \/>my $smtp = Net::SMTP-&gt;new($smtp_server) ||<br \/>die &#8216;Cannot connect to server \\&#8217;$smtp_server\\&#8221;;<\/font> <\/p>\n<p><font size=\"4\">$smtp-&gt;mail(<\/font><a><font size=\"4\">&#8216;bugzilla-daemon@mycompany.com&#8217;<\/font><\/a><font size=\"4\">);&nbsp; # change this<br \/>$smtp-&gt;to($rcpt_to);<br \/>$smtp-&gt;data();<br \/>$smtp-&gt;datasend($msg);<br \/>$smtp-&gt;dataend();<br \/>$smtp-&gt;quit;<\/font> <\/p>\n<p><font size=\"4\">Don&#8217;t forget to change the name of your SMTP server and the domain of the sending email address (after the <\/font><a><font size=\"4\">&#8216;@&#8217;<\/font><\/a><font size=\"4\">) in the above lines of code.<\/font> <\/p>\n<p><font size=\"4\">\u6240\u6709\u7684CGI\u811a\u672c\u90fd\u9700\u8981\u4fee\u6539\u9996\u884c\u7684<br \/>\/usr\/bin\/perl \u4e3a\u672c\u673a\u5b89\u88c5\u7684perl.exe\u76ee\u5f55<\/font> <\/p>\n<p><font size=\"4\">(\u8f6c\u8f7d\u8bf7\u4e8b\u5148\u5f81\u5f97\u4f5c\u8005\u540c\u610f)<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bugzilla Windows \u5b89\u88c5\u624b\u518c \u94b1\u4e94\u54e5 http:\/\/spaces.msn.com\/members&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[204,156,237],"tags":[243],"views":2858,"_links":{"self":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/1239"}],"collection":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1239"}],"version-history":[{"count":1,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/1239\/revisions"}],"predecessor-version":[{"id":1240,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/1239\/revisions\/1240"}],"wp:attachment":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1239"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}