{"id":62,"date":"2011-04-03T18:57:38","date_gmt":"2011-04-03T10:57:38","guid":{"rendered":"http:\/\/guoh.ai\/lifelog\/?p=62"},"modified":"2011-04-06T12:13:31","modified_gmt":"2011-04-06T04:13:31","slug":"installing-bugzilla-v4-on-linux","status":"publish","type":"post","link":"https:\/\/guoh.ai\/lifelog\/2011\/04\/installing-bugzilla-v4-on-linux\/","title":{"rendered":"\u5728Linux\u4e0a\u5b89\u88c5Bugzilla v4"},"content":{"rendered":"<p>\u9996\u5148\u53bb\u5b98\u7f51http:\/\/www.bugzilla.org\/\u4e0b\u8f7dStable Release (4.0)<br \/>\n\u7136\u540e\u53ef\u4ee5\u6d4f\u89c8\u4e0b\u624b\u518chttp:\/\/www.bugzilla.org\/docs\/4.0\/en\/html\/<\/p>\n<p>\u73b0\u5728\u91cd\u70b9\u5173\u6ce8http:\/\/www.bugzilla.org\/docs\/4.0\/en\/html\/installation.html<br \/>\n\u53d1\u73b0\u4f9d\u8d56\u4e8ePerl\uff0cDatabase Engine\uff0cWeb Server\uff0cmod_perl\uff0cPerl Modules\uff0cMail Transfer Agent (MTA)<\/p>\n<p>1\u3001Perl\u5728\u4e00\u822c\u7684Linux\u53d1\u884c\u7248\u4e0a\u90fd\u6709\uff0c\u53ea\u9700\u8981\u6309\u7167\u5b89\u88c5\u624b\u518c\u68c0\u6d4b\u4e0b\u7248\u672c\u662f\u4e0d\u662f\u652f\u6301Bugzilla<\/p>\n<p>2\u3001\u6570\u636e\u5e93\u6bd4\u8f83\u72ec\u7acb\uff0cBugzilla\u652f\u6301\u7684\u4efb\u610f\u4e00\u79cd\u6570\u636e\u5e93\u90fd\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\uff0c\u8fd9\u91cc\u6211\u91c7\u7528\u7684\u662fMySQL v5.5\uff0c\u4ee5\u524d\u6709\u5b89\u88c5\u8fc7\u3002\u5b89\u88c5\u65b9\u6cd5\u53ef\u4ee5\u53c2\u8003\u4e0bhttp:\/\/lucane.iteye.com\/blog\/866355<br \/>\n\u5b89\u88c5\u597d\u4e4b\u540e\u80fd\u6b63\u5e38\u767b\u5f55\u5c31\u53ef\u4ee5\uff0c\u7b49\u4f1a\u6765\u521b\u5efa\u6570\u636e\u5e93\u5b9e\u4f8b\u548c\u7528\u6237\uff0c\u56e0\u4e3abugzilla\u9700\u8981<\/p>\n<p>3\u3001Web Server\u76ee\u524d\u53ea\u6709Apache\u662f\u5b98\u7f51\u63a8\u8350\u7684\uff0c\u4f46\u4f60\u53ef\u4ee5\u7528\u5176\u4ed6\u7684Server\uff0c\u5982\u679c\u7528\u5176\u4ed6\u7684Server\u5b89\u88c5Bugzilla\u6210\u529f\uff0c\u8bf7\u522b\u5fd8\u4e86\u5199\u5c01\u90ae\u4ef6\u544a\u8bc9Bugzilla\u56e2\u961f\u548c\u6211\u3002<br \/>\n\u8fd9\u91cc\u6211\u7528\u7684Apache 2.2.17\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5\uff0c\u8fd8\u7b97\u987a\u5229\uff0c\u5c31\u662f\u542f\u52a8\u7684\u65f6\u5019\u9047\u5230\u70b9\u95ee\u9898\uff0c\u540e\u6765\u89e3\u51b3\u4e86<br \/>\n\u5b89\u88c5\u6210\u529f\u5e76\u542f\u52a8\u6210\u529f\u7684\u60c5\u51b5\u4e0b\uff0c\u5728\u6d4f\u89c8\u5668\u4e0b\u8f93\u5165http:\/\/localhost\/\uff0c\u4f1a\u51fa\u73b0It works!\u7684\u63d0\u793a\uff0c\u8bf4\u660eApache\u5b89\u88c5\u5b8c\u6210<\/p>\n<p>4\u3001mod_perl\u662fApache\u5904\u7406Perl\u7684\u6a21\u5757\uff0c\u6211\u8fd9\u91cc\u662f\u91c7\u7528\u52a8\u6001\u63d2\u4ef6\u7684\u65b9\u5f0f\u96c6\u6210\u5230Apache\u7684\uff0c\u5373Dynamic Shared Object\u65b9\u5f0f\uff0c\u6709\u4eba\u63a8\u8350\u9759\u6001\u7f16\u8bd1\u7684\u65b9\u5f0f\u7f16\u8bd1\u5230Apache\u6e90\u7801\u4e2d\uff0c\u90a3\u6837\u6548\u7387\u9ad8\u3002\u6211\u8fd9\u91cc\u5c31\u4e0d\u9700\u8981\u4e86\uff0c\u5982\u679c\u8981\u91c7\u53d6\u9759\u6001\u7f16\u8bd1\u65b9\u5f0f\u8bf7\u53c2\u8003\u5b98\u65b9\u6587\u6863\uff0c\u603b\u4e4b\u6211\u4eec\u7684\u76ee\u7684\u662f\u8981\u4f7f\u6211\u4eec\u7684Web Server\u5177\u6709\u5904\u7406Perl\u7684\u80fd\u529b\u3002<br \/>\n\u53bbhttp:\/\/perl.apache.org\/download\/index.html\u4e0b\u8f7dmod_perl-2.0.5\uff0c\u7136\u540e\u7f16\u8bd1\u5b89\u88c5<br \/>\nsudo perl Makefile.PL MP_APXS=$APACHE_HOME\/bin\/apxs<br \/>\nMP_APXS\u540e\u9762\u7684\u8fd9\u4e9b\u53c2\u6570\u4f1a\u628a\u5df2\u7ecf\u5b89\u88c5\u597d\u7684Apache\u4fe1\u606f\u4f20\u9012\u7ed9\u7f16\u8bd1\u7a0b\u5e8f\uff0c\u8fd9\u6837\u5b83\u5c31\u77e5\u9053Apache\u5728\u54ea\uff0c<br \/>\n\u7f16\u8bd1\u51fa\u6765\u7684mod_perl.so\u5b83\u5c31\u4f1a\u9ed8\u8ba4\u653e\u5230$APACHE_HOME\/modules\u6587\u4ef6\u5939\u4e0b\uff0c\u4e0d\u4f1a\u968f\u610f\u7ed9\u4f60\u653e\u4e2a\u5730\u65b9<\/p>\n<p>\u6211\u5728\u7f16\u8bd1\u7684\u65f6\u5019\u51fa\u73b0\u4e86\u4e00\u4e2a\u9519\u8bef\uff0c\u5c31\u662f\u63d0\u793a\u7cfb\u7edf\u7f3a\u5c11libperl.so\u6587\u4ef6<br \/>\n\u6211\u5230\/usr\/lib\u4e0b\u67e5\u770b\uff0c\u53d1\u73b0\u771f\u6ca1\u6709\u8fd9\u4e2a\u6587\u4ef6\uff0c\u4f46\u662f\u6709\u4e2alibperl.so.5.10.1\u6587\u4ef6\uff0c<br \/>\n\u4e8e\u662f\u6211\u505a\u4e86\u4e2a\u8f6f\u94fe\u63a5\uff0c\u5982\u4e0b<br \/>\n\/usr\/lib$ sudo ln -sv libperl.so.5.10.1 libperl.so<br \/>\n\u518d\u6b21\u7f16\u8bd1\uff0c\u6210\u529f<\/p>\n<p>\u7f16\u8bd1\u597d\u4e4b\u540e\u5c31\u662f\u914d\u7f6eApache\u4e86\uff0c\u9700\u8981\u628amod_perl\u96c6\u6210\u5230Apache\u5f53\u4e2d\uff0c\u5728$APACHE_HOME\/conf\/httpd.conf<br \/>\n\u641c\u7d22Dynamic Shared Object (DSO) Support\uff0c\u4f1a\u770b\u5230\u4e0b\u65b9\u4e0d\u8fdc\u5904\u6709\u4e2a\u4f8b\u5b50<br \/>\n(\u5728httpd.conf\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u4e2d#\u7b26\u53f7\u8868\u793a\u6ce8\u91ca\u6389\u7684\u5185\u5bb9\uff0c\u8fd9\u91cc\u662f\u7ed9\u6211\u4eec\u53c2\u8003\u7684)<br \/>\n# Example:<br \/>\n# LoadModule foo_module modules\/mod_foo.so<\/p>\n<p>\u6211\u4eec\u53ea\u9700\u8981\u589e\u52a0\u4e00\u884c\u5c31\u884c\uff0c<br \/>\nLoadModule perl_module modules\/mod_perl.so<br \/>\n\u8fd9\u6837\u5c31\u628aperl_module\u96c6\u6210\u8fdb\u6765\u4e86\uff0c\u540e\u9762modules\/mod_perl.so\u662f\u7269\u7406\u4f4d\u7f6e\uff0c<br \/>\n\u4e5f\u5c31\u662f\u4f60\u5e94\u8be5\u5728$APACHE_HOME\/modules\u4e0b\u770b\u5230\u6709\u4e2amod_perl.so\u6587\u4ef6<\/p>\n<p>\u4fdd\u5b58\u4fee\u6539\u597d\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u91cd\u542fApache(.\/apachectl -k stop\uff0csudo .\/apachectl -k start)\uff0c<br \/>\n\u5982\u679cApache\u8fd8\u80fd\u6b63\u5e38\u542f\u52a8\u5c31\u8bf4\u660e\u521a\u521a\u4fee\u6539\u7684\u914d\u7f6e\u6587\u4ef6\u7684\u8bed\u6cd5\u662f\u6b63\u786e\u7684\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u8fdb\u884c\u4e0b\u4e00\u6b65\u7684\u5de5\u4f5c\u4e86<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n\u53e6\u5916\u63d2\u4e2a\u5c0f\u95ee\u9898\uff0c\u6211\u5728\u7528.\/apachectl -k stop\u5173\u95edApache\u7684\u65f6\u5019\uff0cApache\u5e76\u6ca1\u6709\u771f\u6b63\u5173\u95ed\uff0c\u540e\u6765\u6211\u76f4\u63a5kill\u8fdb\u7a0b\u4e86<br \/>\n\u8c8c\u4f3c\u7f51\u7edc\u4e0a\u4e5f\u6709\u4eba\u9047\u5230\u6211\u8fd9\u4e2a\u95ee\u9898\uff0c\u8c01\u77e5\u9053\u539f\u56e0\u70e6\u8bf7\u544a\u77e5\u6211\u4e00\u58f0<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>5\u3001\u5f00\u59cb\u5b89\u88c5Bugzilla\uff0cBugzilla\u662f\u7528Perl\u5199\u7684\uff0c\u6211\u4eec\u673a\u5668\u4e0a\u7684Perl\u53ef\u80fd\u4e0d\u662f\u6700\u5b8c\u6574\u7684\uff0c\u6211\u4eec\u5b89\u88c5\u65f6\u7f3a\u5c11\u4ec0\u4e48\u6a21\u5757\u90fd\u53ef\u4ee5\u73b0\u88c5\u4e0a\u53bb<br \/>\n\u628a\u4e0b\u8f7d\u7684bugzilla\u89e3\u538b\u5230\u786c\u76d8\u67d0\u5904\uff0c\u6bd4\u5982\/var\/www\/\u6216\u8005\/home\/\u4e0b\u7684\u6587\u4ef6\u5939\uff0c\u4e0d\u8981\u653e\u5230\u7cfb\u7edf\u6216\u8005\u4e34\u65f6\u6587\u4ef6\u5939\u4e0b\uff0c\u8fd9\u6837\u90fd\u4e0d\u597d<br \/>\n\u4e3a\u4e86\u5b89\u5168\u8003\u8651\u7684\u8bdd\u4e00\u822c\u90e8\u7f72\u90fd\u4f1a\u7ed9Web Server\u5355\u72ec\u7684\u7528\u6237\uff0c\u5355\u72ec\u7684\u6743\u9650\uff0c\u5355\u72ec\u5b58\u50a8\u7a7a\u95f4<\/p>\n<p>\u6211\u8fd9\u91cc\u662f\u628abugzilla\u653e\u5728\u6211\u7528\u6237\u4e0b\u7684\u4e00\u4e2a\u6587\u4ef6\u5939\u4e0b\u7684(~\/dev\/a\/bugzilla-4.0)\uff0c\u7136\u540e\u505a\u4e86\u4e2a\u8f6f\u94fe\u63a5\u5230Apache\u7684\u5185\u5bb9\u6587\u4ef6\u5939($APACHE_HOME\/htdocs)\u4e0b<br \/>\n$ ls -lh<br \/>\n\u603b\u8ba1 8.0K<br \/>\nlrwxrwxrwx 1 guohai guohai  31 2011-03-31 21:58 bugzilla -> ~\/dev\/a\/bugzilla-4.0<\/p>\n<p>\u6211\u7ed9~\/dev\/a\/bugzilla-4.0\u6587\u4ef6\u5939\u7684\u6743\u9650\u662f\u6211\u5f53\u524d\u7528\u6237\u7684\u6743\u9650\uff0c\u8fd9\u4e2a\u5b9e\u9645\u4e0a\u5f88\u91cd\u8981\uff0c\u540e\u9762\u9047\u5230\u95ee\u9898\u5c31\u8ddf\u6743\u9650\u6709\u5173<\/p>\n<p>\u8fd8\u8981\u5728Apache httpd.conf\u4e2d\u53d1\u5e03bugzilla\uff0c\u589e\u52a0\u6bb5\u914d\u7f6e\uff0c\u770b\u770b\u5df2\u6709\u7684\u914d\u7f6e\u6587\u4ef6\u5c31\u77e5\u9053\u8be5\u52a0\u54ea\u4e86\uff0c$APACHE_HOME\u8fd9\u4e2a\u8bf7\u66ff\u6362\u6210\u81ea\u5df1\u76f8\u5e94\u7684\u8def\u5f84<\/p>\n<p><Directory \"$APACHE_HOME\/htdocs\/bugzilla\"><br \/>\n    Options ExecCGI FollowSymLinks<br \/>\n    AllowOverride Limit<br \/>\n    DirectoryIndex index.cgi<br \/>\n    Order allow,deny<br \/>\n    Allow from all<br \/>\n<\/Directory><br \/>\n\u61c2\u7684\u4eba\u5c31\u77e5\u9053\u8fd9\u6bb5\u914d\u7f6e\u7684\u610f\u601d\uff0c\u4e0d\u61c2\u7684\u4eba\u5c31\u5148\u8fd9\u6837\u52a0\u5728\u91cc\u9762\uff0c\u53ea\u8981\u662f\u76f8\u540c\u7248\u672c\u7684Apache\u5e94\u8be5\u662f\u4e0d\u4f1a\u51fa\u9519\u7684<\/p>\n<p>\u8fd8\u8981\u589e\u52a0AddHandler cgi-script .cgi\u8fd9\u4e2a\uff0c\u4e00\u822c\u9ed8\u8ba4\u90fd\u662f\u5f00\u542f\u4e86\u7684\uff0c\u5728httpd.conf\u4e0b\u641c\u7d22\u4e0b\uff0c\u5982\u679c\u6ca1\u6709\u5f00\u542f\u5c31\u628a\u524d\u9762\u7684#\u7b26\u53f7\u53bb\u6389\u5f00\u542f\u8be5\u529f\u80fd\u5c31\u884c<\/p>\n<p>\u8fd9\u6837\u7684\u8bdd\uff0c\u6211\u4eec\u671f\u671b\u8bbf\u95eebugzilla\u7684\u5730\u5740\u5c31\u53d8\u6210\u4e86http:\/\/localhost\/bugzilla\/<\/p>\n<p>\u73b0\u5728\u6765\u6b63\u5f0f\u5f00\u59cb\u5b89\u88c5Bugzilla\u7a0b\u5e8f<br \/>\n\u5148\u8fd0\u884c~\/dev\/a\/bugzilla-4.0$ .\/checksetup.pl &#8211;check-modules<br \/>\n\u5b83\u4f1a\u63d0\u793a\u7f3a\u5c11\u54ea\u4e9b\u6a21\u5757\uff0c\u6bd4\u5982Checking for               DBD-Pg (v1.45)     not found<br \/>\n\u51e1\u662fnot found\u90fd\u662f\u76ee\u524d\u7cfb\u7edf\u4e0a\u4e0d\u5177\u6709\u7684\u6a21\u5757\uff0c\u4f46\u662f\u6211\u4eec\u53ea\u9700\u8981\u5148\u5b89\u88c5\u5fc5\u987b\u7684\u6a21\u5757\uff0c\u7f3a\u5c11\u7684\u6a21\u5757\u548c\u5b89\u88c5\u65b9\u5f0f\u4e0a\u9762\u90fd\u6709\u5199\u51fa\u6765<br \/>\n\u4e00\u822c\u6211\u4eec\u53ea\u9700\u8981\u6267\u884c\u7c7b\u4f3c\u7684\u547d\u4ee4sudo perl install-module.pl TheSchwartz\u5c31\u53ef\u4ee5\u5b89\u88c5\u5b8c\u6210\uff0c\u5f88\u597d\u7406\u89e3<br \/>\n\u6211\u5728\u5b89\u88c5\u7684\u65f6\u5019\u6700\u5f00\u59cb\u5b89\u88c5MySQL\u6570\u636e\u7684\u6a21\u5757\uff0c\u7ed3\u679c\u63d0\u793a\u9519\u8bef\uff0c\u53ef\u80fd\u662f\u4f9d\u8d56\u4e8e\u5176\u4ed6\u7684\u6a21\u5757\uff0c\u6240\u4ee5\u6211\u5148\u628a\u5176\u4ed6\u6a21\u5757\u5b89\u88c5\u5b8c\u4e86\u518d\u53bb\u5b89\u88c5MySQL\u7684\u5c31\u53ef\u4ee5\u4e86<br \/>\n\u5982\u679c\u51fa\u73b0\u5b89\u88c5\u9519\u8bef\u4e4b\u7c7b\u7684\u95ee\u9898\uff0c\u53ea\u9700\u8981\u8ba4\u771f\u770b\u770b\u63d0\u793a\uff0c\u4e00\u822c\u90fd\u53ef\u4ee5\u89e3\u51b3<\/p>\n<p>\u5fc5\u987b\u7684\u6a21\u5757\u90fd\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\u5c31\u53ef\u4ee5\u914d\u7f6e\u4e86\uff0c\u7b80\u5355\u7684\u6765\u8bf4\u5c31\u662f\u4e9b\u6570\u636e\u5e93\u94fe\u63a5\u7684\u914d\u7f6e<br \/>\n\u53c2\u8003http:\/\/www.bugzilla.org\/docs\/4.0\/en\/html\/configuration.html<br \/>\n\u6267\u884c\u4e0b.\/checksetup.pl\uff0c\u73b0\u5728\u4e0d\u5e26\u540e\u9762\u7684check-modules\u53c2\u6570<br \/>\n\u5b83\u4f1a\u5e2e\u6211\u4eec\u751f\u6210$BUGZILLA_HOME\/localconfig\u8fd9\u4e2a\u6587\u4ef6\uff0c\u6253\u5f00\u770b\u770b\u5c31\u77e5\u9053\u662f\u4e9b\u6bd4\u5982\u6570\u636e\u5e93\u673a\u5668\u5730\u5740\uff0c\u6570\u636e\u5e93\u540d\u5b57\uff0c\u5bc6\u7801\u7b49\u7b49<\/p>\n<p>\u91cd\u70b9\u6709\u4e24\u4e2a\u53c2\u6570\u9700\u8981\u6ce8\u610f<br \/>\n$webservergroup = &#8216;yourgroupname&#8217;;<br \/>\n$db_sock = &#8216;\/etc\/mysql\/mysql.sock&#8217;;<br \/>\n\u4e0a\u9762\u4e00\u4e2a\u5c31\u662f\u8bf4Web Server\u662f\u4ee5\u4ec0\u4e48\u7ec4\u7684\u6743\u9650\u8fd0\u884c\u7684\uff0c\u4f60\u8fd9\u91cc\u5c31\u4ee5\u8fd9\u4e2a\u7ec4\uff0c\u5c3d\u91cf\u4e0d\u8981\u7559\u7a7a\uff0c\u7559\u7a7a\u5f88\u5371\u9669<br \/>\n\u4e0b\u9762\u7684\u4e00\u4e2a\u5c31\u662fMysql\u6570\u636e\u5e93\u672c\u5730\u8fde\u63a5\u76f8\u5173\u7684\uff0c\u53ef\u4ee5\u52a0\u901f\u672c\u5730\u8fde\u63a5\u6027\u80fd\uff0c\u53ef\u4ee5\u53c2\u8003MySQL\u7684\u5b89\u88c5\uff0c\u5982\u679c\u7559\u7a7a\u7684\u8bdd\uff0cBugzilla\u5c31\u4ee5\u9ed8\u8ba4\u7684\u8def\u5f84\u53bb\u67e5\u627e\uff0c<br \/>\n\u5982\u679c\u627e\u4e0d\u5230\u5c31\u53ef\u80fd\u4f1a\u62a5\u6570\u636e\u5e93\u8fde\u63a5\u9519\u8bef\uff0c\u6240\u4ee5\u67e5\u67e5MySQL\u7684\u5b89\u88c5\u914d\u7f6e\u5c31\u660e\u767d\u4e86<\/p>\n<p>\u8fd9\u4e9b\u90fd\u914d\u7f6e\u597d\u4e86\u6211\u4eec\u662f\u4e0d\u662f\u53ef\u4ee5\u91cd\u542fApache\u5f00\u59cb\u4f7f\u7528Bugzilla\u4e86\uff0c\u8fd8\u4e0d\u53ef\u4ee5\uff0c\u56e0\u4e3a\u521a\u521a\u53ea\u8bf4\u4e86\u4e0b\u6570\u636e\u5e93\u7684\u8fde\u63a5\uff0c\u6211\u4eec\u8fd8\u5e76\u6ca1\u6709\u5b9e\u9645\u7684\u521b\u5efa\u6570\u636e\u5e93\u3002<br \/>\n\u5f88\u7b80\u5355\uff0c\u521b\u5efa\u4e2a\u7528\u6237(bugzilla)\uff0c\u5f53\u7136\u8fd8\u6709\u5bc6\u7801\uff0c\u521b\u5efa\u4e2a\u6570\u636e\u5e93(bugbase)\uff0c\u7136\u540e\u628a\u76f8\u5e94\u7684\u6743\u9650\u6388\u4e88\u521b\u5efa\u7684\u8fd9\u4e2a\u7528\u6237<\/p>\n<p>\u8fd9\u4e9b\u90fd\u6709\u4e86\u4e4b\u540e\u6211\u4eec\u624d\u80fd\u586b\u5199localconfig\u6587\u4ef6\u76f8\u5e94\u7684\u5185\u5bb9\uff0c\u91cd\u542fApache\uff0c\u518d\u6267\u884c\u904d~\/dev\/a\/bugzilla-4.0$ .\/checksetup.pl<br \/>\n\u8fd9\u624d\u662f\u771f\u6b63\u7684\u5b89\u88c5\uff0c\u5b83\u4f1a\u8fde\u63a5\u6570\u636e\u5e93\u521b\u5efa\u8868\u7b49\u7b49\u64cd\u4f5c\uff0c\u5982\u679c\u6ca1\u6709\u9519\u8bef\u7684\u8bdd\u4f1a\u63d0\u793a\u4f60\u521b\u5efa\u7ba1\u7406\u5458\u8d26\u6237\uff0c\u4e00\u822c\u8f93\u5165\u7535\u5b50\u90ae\u4ef6\uff0c\u540d\u5b57\uff0c\u5bc6\u7801\u4e4b\u7c7b\u7684\u5c31\u53ef\u4ee5<\/p>\n<p>\u7136\u540e\u6211\u4eec\u9ad8\u9ad8\u5174\u5174\u7684\u53bb\u6253\u5f00\u6d4f\u89c8\u5668\u53bb\u770b\u770bBugzilla<\/p>\n<p>\u8fd9\u4e2a\u65f6\u5019\u8fd0\u6c14\u597d\u7684\u4eba\u53ef\u80fd\u4f1a\u53d1\u73b0\u771f\u80fd\u591f\u8bbf\u95ee\u4e86\uff0c\u4f46\u662f\u8fd0\u6c14\u4e0d\u597d\u7684\u4eba\u4e00\u822c\u90fd\u4f1a\u7ed9\u51fa403\u9519\u8bef\uff0c\u6728\u6709\u6743\u9650\uff0cForbidden\u51e0\u4e2a\u5927\u5b57\u641e\u7684\u4f60\u6ca1\u6709\u813e\u6c14<br \/>\n\u6211\u662f\u53c2\u8003\u4e86\u4e0b\u9762\u7684\u624d\u89e3\u51b3\u7684<br \/>\nhttp:\/\/support.modwest.com\/content\/2\/181\/en\/after-i-install-bugzilla-i-get-error-403-forbidden.html<\/p>\n<p>\u53bbBugzilla\u76ee\u5f55\u4e0b\u6267\u884c<br \/>\nfind . -type d -exec chmod 755 {} \\;<br \/>\nfind . -type f -exec chmod 644 {} \\;<br \/>\nfind . -name \\*.cgi -exec chmod 755 {} \\;<br \/>\nfind . -name \\*.pl -exec chmod 755 {} \\;<br \/>\nfind . -name \\*.sh -exec chmod 755 {} \\;<\/p>\n<p>\u4f46\u662f\u5728\u8fd9\u4e4b\u524d\u9700\u8981\u8bf4\u660e\u70b9\u4e1c\u897f\uff0c\u53ef\u80fd\u4f1a\u5bf9\u7406\u89e3\u8fd9\u4e2a\u6743\u9650\u6709\u70b9\u5e2e\u52a9<\/p>\n<p>\u9996\u5148\uff0cApache\u672c\u8eab\u662f\u6709\u8fd0\u884c\u6743\u9650\u7684\uff0c\u641c\u7d22\u4e0bhttpd.conf\uff0c\u4f60\u4f1a\u627e\u5230\u5982\u4e0b\u8fd9\u6bb5<br \/>\n#<br \/>\n# If you wish httpd to run as a different user or group, you must run<br \/>\n# httpd as root initially and it will switch.<br \/>\n#<br \/>\n# User\/Group: The name (or #number) of the user\/group to run httpd as.<br \/>\n# It is usually good practice to create a dedicated user and group for<br \/>\n# running httpd, as with most system services.<br \/>\n#<br \/>\nUser guohai<br \/>\nGroup guohai<\/p>\n<p>\u5b83\u5efa\u8bae\u4f60\u5355\u72ec\u521b\u5efa\u7528\u6237\u548c\u7ec4\uff0c\u5e76\u5728\u8fd9\u91cc\u6307\u5b9a\uff0c\u7136\u540e\u4ee5root\u6743\u9650\u8fd0\u884cApache\uff0c\u5b83\u4f1a\u81ea\u52a8\u5e2e\u52a9\u4f60\u5207\u6362\u8fc7\u6765<\/p>\n<p>\u4e5f\u5c31\u662f\u6211\u8fd9\u91cc\u8fd0\u884cApache\u7684\u7528\u6237\u548c\u7ec4\u90fd\u662fguohai\uff0c\u5e76\u4e14Bugzilla\u7684localconfig\u4e2d\u7684$webservergroup\u4e5f\u662fguohai<br \/>\n\u5e76\u4e14Bugzilla\u76ee\u5f55\u4e0b\u6587\u4ef6\u7684\u7528\u6237\u548c\u7ec4\u90fd\u662fguohai<\/p>\n<p>\u8fd9\u4e9b\u90fd\u6b63\u786e\u4e86\u4e4b\u540e\u73b0\u5728\u5e94\u8be5\u662f\u53ef\u4ee5\u8bbf\u95ee\u7684\u4e86\uff0c\u80fd\u770b\u5230Bugzilla\u7684\u9875\u9762\u5c31\u7b97\u544a\u4e00\u6bb5\u843d\u4e86\uff0c\u4f46\u662f\u8fd8\u6ca1\u6709\u5b8c\u3002<\/p>\n<p>\u56e0\u4e3aBugzilla\u5f53\u4e2d\u6709\u5f88\u591a\u90ae\u4ef6\u901a\u77e5\uff0c\u6240\u4ee5\u8fd8\u9700\u8981\u914d\u7f6eMTA\u4e4b\u7c7b\u7684\u4e1c\u897f\uff0c<br \/>\n\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u68c0\u6d4b\u76ee\u524d\u64cd\u4f5c\u7cfb\u7edf\u73af\u5883\u662f\u5426\u5df2\u7ecf\u6ee1\u8db3\u8be5\u6761\u4ef6\u7684\u5c31\u662f\u5728Bugzilla\u4e0a\u6ce8\u518c\u4e00\u4e2a\u65b0\u7528\u6237\uff0c<br \/>\n\u5982\u679c\u4e0d\u51fa\u73b0\u9519\u8bef\u5c31\u8868\u793a\u76ee\u524d\u6ee1\u8db3\u6761\u4ef6<\/p>\n<p>\u6211\u7684\u673a\u5668\u4e0a\u9762\u51fa\u73b0\u9519\u8bef\uff0c\u662f\u56e0\u4e3a\u6ca1\u6709\u88c5MTA\u7684\u539f\u56e0\uff0c\u6211\u5c31\u88c5\u4e86\u4e2aSendMail\uff0c\u5927\u5bb6\u53ef\u4ee5\u53c2\u8003\u5176\u4ed6\u76f8\u5173\u6587\u6863\u3002<br \/>\n\u5b98\u65b9\u6709\u4e2a\u7b80\u77ed\u6709\u6548\u7684\u8bf4\u6cd5\uff0c\u5c31\u8bf4\u4f60\u5982\u679c\u80fd\u7528mail\u547d\u4ee4\u6210\u529f\u53d1\u90ae\u4ef6\u7684\u8bdd\uff0c\u90a3\u4e48Bugzilla\u4e5f\u5c31\u662f\u53ef\u4ee5\u7528\u7684<br \/>\n\u9519\u8bef\u5982\u4e0b\uff1a<br \/>\nThere was an error sending mail from &#8216;bugzilla-daemon&#8217; to &#8216;guohai@mailwalk.com&#8217;:error when closing pipe to \/usr\/sbin\/sendmail: Broken pipe<br \/>\nTraceback:<br \/>\n at Bugzilla\/Mailer.pm line 186<br \/>\n\tBugzilla::Mailer::MessageToMTA(&#8230;) called at Bugzilla\/Token.pm line 90<br \/>\n\tBugzilla::Token::issue_new_user_account_token(&#8230;) called at \/home\/guohai\/apps\/volcano\/apache\/htdocs\/bugzilla\/createaccount.cgi line 73<\/p>\n<p>\u5355\u72ec\u8fd0\u884c\u4e0b\/usr\/sbin\/sendmail\uff0c\u63d0\u793a\uff1a<br \/>\nPlease install an MTA on this system if you want to use sendmail!<\/p>\n<p>\u5728\u4fee\u6539\u914d\u7f6e\u7684\u65f6\u5019\u4e5f\u51fa\u73b0\u4e86\u9519\u8bef\uff0c\u56e0\u4e3a\u4fee\u6539\u914d\u7f6e\u4fe1\u606f\uff0c\u8981\u5f80\u4e00\u4e2a\u6587\u4ef6($BUGZILLA_HOME\/data\/params)\u91cc\u9762\u5199\u4e1c\u897f\uff0c\u6587\u4ef6\u9700\u8981\u6709\u53ef\u5199\u6743\u9650<br \/>\n~\/dev\/a\/bugzilla-4.0\/data$<br \/>\n-rw-rw-r&#8211; 1 guohai guohai 4.0K 2011-04-01 00:36 params<br \/>\n\u7c7b\u4f3c\u8fd9\u4e9b\u9519\u8bef\u53ea\u9700\u8981\u6839\u636e\u9519\u8bef\u63d0\u793a\u7ed9\u6743\u9650\u5c31\u53ef\u4ee5\u4e86<\/p>\n<p>\u8fd8\u6709\u4e2a\u529f\u80fd\u5982\u679c\u9700\u8981\u5f00\u542f\u7684\u8bdd\u5c31\u8fd8\u8981\u6539\u914d\u7f6e\uff0c\u90a3\u5c31\u662fuse_mailer_queue\uff0c\u4e5f\u5c31\u662f\u8ba9\u901a\u77e5\u90ae\u4ef6\u5728\u540e\u53f0\u4ee5\u5f02\u6b65\u65b9\u5f0f\u53d1\u9001\uff0c\u4e00\u822c\u7528\u6237\u591a\u7684\u7cfb\u7edf\u90fd\u8981\u5f00\u542f\u8be5\u529f\u80fd<br \/>\n\u4f46\u662f\u8be5\u529f\u80fd\u4f9d\u8d56\u4e8e\u4e00\u4e2a\u6a21\u5757\uff0c\u5426\u5219\u5c31\u4f1a\u5982\u4e0b\u51fa\u9519<br \/>\nThe new value for use_mailer_queue is invalid: Using the job queue requires that you have certain Perl modules installed. See the output of checksetup.pl for more information.<\/p>\n<p>\u8be6\u60c5\u4e5f\u53ef\u4e00\u53c2\u8003http:\/\/www.bugzilla.org\/docs\/tip\/en\/html\/api\/jobqueue.html<\/p>\n<p>\u7f16\u8bd1jobqueue.pl<br \/>\n~\/dev\/a\/bugzilla-4.0$ .\/jobqueue.pl<br \/>\nBase class package &#8220;TheSchwartz&#8221; is empty.<br \/>\n    (Perhaps you need to &#8216;use&#8217; the module which defines that package first,<br \/>\n    or make that module available in @INC (@INC contains: . lib\/i686-linux-gnu-thread-multi lib \/etc\/perl \/usr\/local\/lib\/perl\/5.10.1 \/usr\/local\/share\/perl\/5.10.1 \/usr\/lib\/perl5 \/usr\/share\/perl5 \/usr\/lib\/perl\/5.10 \/usr\/share\/perl\/5.10 \/usr\/local\/lib\/site_perl).<br \/>\n at Bugzilla\/JobQueue.pm line 30<br \/>\nBEGIN failed&#8211;compilation aborted at Bugzilla\/JobQueue.pm line 30.<br \/>\nCompilation failed in require at Bugzilla\/JobQueue\/Runner.pm line 36.<br \/>\nBEGIN failed&#8211;compilation aborted at Bugzilla\/JobQueue\/Runner.pm line 36.<br \/>\nCompilation failed in require at .\/jobqueue.pl line 30.<br \/>\nBEGIN failed&#8211;compilation aborted at .\/jobqueue.pl line 30.<\/p>\n<p>\u53d1\u73b0\u7f3a\u5c11TheSchwartz\u6a21\u5757<br \/>\n\u8fd9\u4e2a\u65f6\u5019\u6700\u7b80\u5355\u7684\u5c31\u662f\u68c0\u6d4b\u4e0b\u54ea\u4e9b\u6a21\u5757\u6ca1\u6709\uff0c\u4e4b\u524d\u6211\u4eec\u5df2\u7ecf\u6267\u884c\u8fc7\u8fd9\u4e2a\u64cd\u4f5c.\/checksetup.pl &#8211;check-modules<\/p>\n<p>\u90a3\u5c31\u6309\u7167\u63d0\u793a\u5b89\u88c5TheSchwartz\u6a21\u5757<br \/>\nsudo perl install-module.pl TheSchwartz<br \/>\n\u53d1\u73b0\u8fd8\u662f\u62a5\u9519\uff0c\u56e0\u4e3a\u5b83\u8fd8\u4f9d\u8d56\u4e8e\u53e6\u4e00\u4e2a\u6a21\u5757<br \/>\nCan&#8217;t locate object method &#8220;new&#8221; via package &#8220;Bugzilla::JobQueue::Runner&#8221; at .\/jobqueue.pl line 32.<br \/>\n\u679c\u65ad\u770b\u51fa\u662fBugzilla::JobQueue::Runner\u8fd9\u4e2a\u7c7b\u4e0d\u6b63\u786e\uff0c\u6216\u6ca1\u6709\uff0c\u72af\u4e0bAPI\u53d1\u73b0<br \/>\nBugzilla::JobQueue::Runner &#8211; A class representing the daemon that runs the job queue.<br \/>\n\u5c31\u8bf4\u660e\u8fd8\u4f9d\u8d56\u53e6\u5916\u4e00\u4e2a\u6a21\u5757\uff0c\u5b9a\u4f4d\u5230Daemon::Generic<br \/>\n\u90a3\u5c31\u518d\u5b89\u88c5Daemon\u6a21\u5757sudo perl install-module.pl Daemon::Generic<\/p>\n<p>\u7f16\u8bd1 .\/jobqueue.pl\u901a\u8fc7<br \/>\n\u542f\u52a8 .\/jobqueue.pl start<br \/>\n\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u8ba9jobqueue\u968f\u64cd\u4f5c\u7cfb\u7edf\u5f00\u673a\u542f\u52a8\uff0c\u53ef\u4ee5\u53c2\u7167\u6587\u6863\u505a\u4e9b\u8bbe\u7f6e<\/p>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u5f00\u542fBugzilla\u7684use_mailer_queue\u529f\u80fd\u4e86<\/p>\n<p>\u8fd9\u6837\u624d\u7b97\u57fa\u672c\u5b8c\u6210\u4e86<br \/>\n\u4e0d\u8fc7\u8fd8\u6709\u4e00\u4e9b\u529f\u80fd\u9700\u8981\uff0c\u6bd4\u5982\u8bbe\u7f6e\u901a\u77e5\u90ae\u4ef6\u7684\u5730\u5740\uff0c\u5c31\u662f\u8bf4\u8fd9\u4e9b\u901a\u77e5\u90ae\u4ef6\u662f\u7531\u54ea\u4e2a\u90ae\u7bb1\u53d1\u51fa\u7684\uff0c<br \/>\n\u6709\u4eba\u53ef\u4ee5\u628a\u4ed6\u5b9a\u4f4d\u5230Gmail\u7b49\u7b2c\u4e09\u65b9\u90ae\u7bb1\u4e0a\uff0c\u6211\u76ee\u524d\u8fd8\u662f\u4e2a\u65e0\u6548\u7684\u90ae\u4ef6\u5730\u5740\u53d1\u51fa\u53bb\u7684\u90ae\u4ef6\uff0cbugzilla-daemon@localhost6.localdomain6<br \/>\n\u8fd9\u79cd\u90ae\u4ef6\u53ef\u80fd\u4f1a\u88ab\u4e9b\u5176\u5b83\u90ae\u7bb1\u62d2\u7edd<\/p>\n<p>\u5efa\u8bae\u5927\u5bb6\u5b89\u88c5\u7684\u65f6\u5019\u8fd8\u662f\u5148\u8bfb\u8bfb\u5b98\u65b9\u6307\u5357\uff0c\u6211\u8fd9\u91cc\u53ea\u662f\u628a\u51fa\u73b0\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u529e\u6cd5\u8bb0\u5f55\u4e0b\u4e86\uff0c\u770b\u8d77\u6765\u4e0d\u662f\u90a3\u4e48\u987a\u7545\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u53bb\u5b98\u7f51http:\/\/www.bugzilla.org\/\u4e0b\u8f7dStable Release (4.0) \u7136\u540e\u53ef\u4ee5\u6d4f\u89c8\u4e0b\u624b\u518chttp:\/\/www.bugzilla.org\/docs\/4.0\/en\/html\/ \u73b0\u5728\u91cd\u70b9\u5173\u6ce8http:\/\/www.bugzilla.org\/docs\/4.0\/en\/html\/installation.html \u53d1\u73b0\u4f9d\u8d56\u4e8ePerl\uff0cDatabase Engine\uff0cWeb Server\uff0cmod_perl\uff0cPerl Modules\uff0cMail Transfer Agent (MTA) 1\u3001Perl\u5728\u4e00\u822c\u7684Linux\u53d1\u884c\u7248\u4e0a\u90fd\u6709\uff0c\u53ea\u9700\u8981\u6309\u7167\u5b89\u88c5\u624b\u518c\u68c0\u6d4b\u4e0b\u7248\u672c\u662f\u4e0d\u662f\u652f\u6301Bugzilla 2\u3001\u6570\u636e\u5e93\u6bd4\u8f83\u72ec\u7acb\uff0cBugzilla\u652f\u6301\u7684\u4efb\u610f\u4e00\u79cd\u6570\u636e\u5e93\u90fd\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\uff0c\u8fd9\u91cc\u6211\u91c7\u7528\u7684\u662fMySQL v5.5\uff0c\u4ee5\u524d\u6709\u5b89\u88c5\u8fc7\u3002\u5b89\u88c5\u65b9\u6cd5\u53ef\u4ee5\u53c2\u8003\u4e0bhttp:\/\/lucane.iteye.com\/blog\/866355 \u5b89\u88c5\u597d\u4e4b\u540e\u80fd\u6b63\u5e38\u767b\u5f55\u5c31\u53ef\u4ee5\uff0c\u7b49\u4f1a\u6765\u521b\u5efa\u6570\u636e\u5e93\u5b9e\u4f8b\u548c\u7528\u6237\uff0c\u56e0\u4e3abugzilla\u9700\u8981 3\u3001Web Server\u76ee\u524d\u53ea\u6709Apache\u662f\u5b98\u7f51\u63a8\u8350\u7684\uff0c\u4f46\u4f60\u53ef\u4ee5\u7528\u5176\u4ed6\u7684Server\uff0c\u5982\u679c\u7528\u5176\u4ed6\u7684Server\u5b89\u88c5Bugzilla\u6210\u529f\uff0c\u8bf7\u522b\u5fd8\u4e86\u5199\u5c01\u90ae\u4ef6\u544a\u8bc9Bugzilla\u56e2\u961f\u548c\u6211\u3002 \u8fd9\u91cc\u6211\u7528\u7684Apache 2.2.17\u6e90\u7801\u7f16\u8bd1\u5b89\u88c5\uff0c\u8fd8\u7b97\u987a\u5229\uff0c\u5c31\u662f\u542f\u52a8\u7684\u65f6\u5019\u9047\u5230\u70b9\u95ee\u9898\uff0c\u540e\u6765\u89e3\u51b3\u4e86 \u5b89\u88c5\u6210\u529f\u5e76\u542f\u52a8\u6210\u529f\u7684\u60c5\u51b5\u4e0b\uff0c\u5728\u6d4f\u89c8\u5668\u4e0b\u8f93\u5165http:\/\/localhost\/\uff0c\u4f1a\u51fa\u73b0It works!\u7684\u63d0\u793a\uff0c\u8bf4\u660eApache\u5b89\u88c5\u5b8c\u6210 4\u3001mod_perl\u662fApache\u5904\u7406Perl\u7684\u6a21\u5757\uff0c\u6211\u8fd9\u91cc\u662f\u91c7\u7528\u52a8\u6001\u63d2\u4ef6\u7684\u65b9\u5f0f\u96c6\u6210\u5230Apache\u7684\uff0c\u5373Dynamic Shared Object\u65b9\u5f0f\uff0c\u6709\u4eba\u63a8\u8350\u9759\u6001\u7f16\u8bd1\u7684\u65b9\u5f0f\u7f16\u8bd1\u5230Apache\u6e90\u7801\u4e2d\uff0c\u90a3\u6837\u6548\u7387\u9ad8\u3002\u6211\u8fd9\u91cc\u5c31\u4e0d\u9700\u8981\u4e86\uff0c\u5982\u679c\u8981\u91c7\u53d6\u9759\u6001\u7f16\u8bd1\u65b9\u5f0f\u8bf7\u53c2\u8003\u5b98\u65b9\u6587\u6863\uff0c\u603b\u4e4b\u6211\u4eec\u7684\u76ee\u7684\u662f\u8981\u4f7f\u6211\u4eec\u7684Web Server\u5177\u6709\u5904\u7406Perl\u7684\u80fd\u529b\u3002 \u53bbhttp:\/\/perl.apache.org\/download\/index.html\u4e0b\u8f7dmod_perl-2.0.5\uff0c\u7136\u540e\u7f16\u8bd1\u5b89\u88c5 sudo perl Makefile.PL MP_APXS=$APACHE_HOME\/bin\/apxs MP_APXS\u540e\u9762\u7684\u8fd9\u4e9b\u53c2\u6570\u4f1a\u628a\u5df2\u7ecf\u5b89\u88c5\u597d\u7684Apache\u4fe1\u606f\u4f20\u9012\u7ed9\u7f16\u8bd1\u7a0b\u5e8f\uff0c\u8fd9\u6837\u5b83\u5c31\u77e5\u9053Apache\u5728\u54ea\uff0c \u7f16\u8bd1\u51fa\u6765\u7684mod_perl.so\u5b83\u5c31\u4f1a\u9ed8\u8ba4\u653e\u5230$APACHE_HOME\/modules\u6587\u4ef6\u5939\u4e0b\uff0c\u4e0d\u4f1a\u968f\u610f\u7ed9\u4f60\u653e\u4e2a\u5730\u65b9 \u6211\u5728\u7f16\u8bd1\u7684\u65f6\u5019\u51fa\u73b0\u4e86\u4e00\u4e2a\u9519\u8bef\uff0c\u5c31\u662f\u63d0\u793a\u7cfb\u7edf\u7f3a\u5c11libperl.so\u6587\u4ef6 \u6211\u5230\/usr\/lib\u4e0b\u67e5\u770b\uff0c\u53d1\u73b0\u771f\u6ca1\u6709\u8fd9\u4e2a\u6587\u4ef6\uff0c\u4f46\u662f\u6709\u4e2alibperl.so.5.10.1\u6587\u4ef6\uff0c \u4e8e\u662f\u6211\u505a\u4e86\u4e2a\u8f6f\u94fe\u63a5\uff0c\u5982\u4e0b \/usr\/lib$ sudo ln -sv libperl.so.5.10.1 libperl.so \u518d\u6b21\u7f16\u8bd1\uff0c\u6210\u529f \u7f16\u8bd1\u597d\u4e4b\u540e\u5c31\u662f\u914d\u7f6eApache\u4e86\uff0c\u9700\u8981\u628amod_perl\u96c6\u6210\u5230Apache\u5f53\u4e2d\uff0c\u5728$APACHE_HOME\/conf\/httpd.conf \u641c\u7d22Dynamic Shared Object (DSO) Support\uff0c\u4f1a\u770b\u5230\u4e0b\u65b9\u4e0d\u8fdc\u5904\u6709\u4e2a\u4f8b\u5b50 (\u5728httpd.conf\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u4e2d#\u7b26\u53f7\u8868\u793a\u6ce8\u91ca\u6389\u7684\u5185\u5bb9\uff0c\u8fd9\u91cc\u662f\u7ed9\u6211\u4eec\u53c2\u8003\u7684) # Example: # LoadModule foo_module &hellip; <a href=\"https:\/\/guoh.ai\/lifelog\/2011\/04\/installing-bugzilla-v4-on-linux\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\u5728Linux\u4e0a\u5b89\u88c5Bugzilla v4<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_gfmr_meta_descriptions":[],"_gfmr_multilingual_taxonomy_terms":[],"footnotes":""},"categories":[6],"tags":[10],"class_list":["post-62","post","type-post","status-publish","format-standard","hentry","category-linux","tag-bugzilla"],"_links":{"self":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts\/62","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/comments?post=62"}],"version-history":[{"count":5,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":78,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/posts\/62\/revisions\/78"}],"wp:attachment":[{"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/media?parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/categories?post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guoh.ai\/lifelog\/wp-json\/wp\/v2\/tags?post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}