{"id":205,"date":"2013-06-10T17:05:44","date_gmt":"2013-06-10T08:05:44","guid":{"rendered":"http:\/\/darkgray.homelinux.com\/modules\/xpress\/?p=205"},"modified":"2013-06-10T17:05:44","modified_gmt":"2013-06-10T08:05:44","slug":"darkgray-%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e8%a8%ad%e5%ae%9a%e5%a4%89%e6%9b%b4","status":"publish","type":"post","link":"https:\/\/darkgray.homelinux.com\/blog\/?p=205","title":{"rendered":"darkgray \u30b5\u30fc\u30d0\u30fc\u8a2d\u5b9a\u5909\u66f4"},"content":{"rendered":"<p>darkgray\u30b5\u30fc\u30d0\uff08\u3053\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\uff09\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u8a2d\u5b9a\u3092\u5185\u90e8\u306e\u4e8b\u60c5\u306b\u3088\u308a\u5909\u66f4\u3059\u308b\u3002<br \/>\n<!--more--><br \/>\n\u30b5\u30fc\u30d0\u7ba1\u7406\u306e\u554f\u984c\u3067\u30b5\u30fc\u30d0\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u79fb\u3057\u3066\u7ba1\u7406\u8005\u3092\u59d4\u8b72\u3059\u308b\u3002<br \/>\n\u307e\u305ahttp.conf\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u3066apache\u306e\u8a2d\u5b9a\u3092\u30ea\u30ed\u30fc\u30c9\u3059\u308b\u3002<br \/>\n\u6b21\u306bxoops\u306e\u30d5\u30a1\u30a4\u30eb\u7fa4\u3092\u65b0\u3057\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u6240\u6709\u8005\u3092\u5909\u66f4\u3059\u308b\u3002<br \/>\nxoops\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306emainfile.php\u306e&#8217;XOOPS_ROOT_PATH,XOOPS_TRUST_PATH\u306e\u9805\u76ee\u3092\u65b0\u3057\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u8a2d\u5b9a\u306b\u4fee\u6b63\u3059\u308c\u3070OK\u306e\u306f\u305a\u306a\u3093\u3060\u304c\u30fb\u30fb\u30fb<br \/>\n\u306a\u305c\u3060\u304b\uff1f\u3000\u4e0a\u624b\u304f\u3044\u304b\u3093\u3002<\/p>\n<p>\u554f\u984c\u70b9<br \/>\n<strong>\u4fee\u6b63\u524d\u306e\u53e4\u3044XOOPS_TRUST_PATH\u3092\u898b\u306b\u884c\u3063\u3066\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002<\/strong><br \/>\nXOOPS_TRUST_PATH\u306f\u3061\u3083\u3093\u3068\u4fee\u6b63\u3057\u3066\u3042\u308b\u3057\u30ad\u30e3\u30c3\u30b7\u30e5\u30d5\u30a1\u30a4\u30eb\u306f\u524a\u9664\u3057\u305f\u3001DB\u5185\u306b\u53e4\u3044XOOPS_TRUST_PATH\u3092\u8a18\u9332\u3057\u3066\u308b\u9805\u76ee\u304c\u3042\u308b\u30fb\u30fb\u30fb\u306e\u304b\u3041\uff1f<\/p>\n<p><strong>\u30e2\u30b8\u30e5\u30fc\u30eb\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304cSelinux\u3092\u505c\u6b62\u3057\u306a\u3044\u3068\u6210\u529f\u3057\u306a\u3044\u3002<\/strong>\u3053\u306e\u554f\u984c\u306f\u89e3\u6c7a<br \/>\n<del datetime=\"2013-06-10T08:44:59+00:00\">\u4ed6\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u308bxoops\u306f\u4e0a\u624b\u304f\u884c\u3063\u3066\u308b\u306e\u3067Selinux\u306e\u8a2d\u5b9a\u306e\u554f\u984c\u306f\u8003\u3048\u306b\u304f\u3044\u3002\u4f55\u3067\u304b\u306a\u3041\uff1f<\/del><br \/>\nxoops\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u8a72\u5f53\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3060\u3051\u3067\u306a\u304f\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089selinux\u306e\u8a2d\u5b9a\u3092\u4fee\u6b63\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\nrestorecon -R xxxxx\u3000<--xoops\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3059\u308b\u3002\n\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089selinux\u306e\u8a2d\u5b9a\u3092\u4fee\u6b63\u3057\u3066\u304f\u308c\u308b\u3002\nchcon -R -h -t httpd_user_content_t\u3000xxxxxx\u3000<--xoops\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u8a72\u5f53\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3059\u308b\u3002\n\u4eca\u56de\u306edarkgray\u30b5\u30fc\u30d0\u306e\u5834\u5408\u306f\u72ec\u81ea\u306b\u8ffd\u52a0\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u306e\u3067restorecon\u3067\u306f\u4fee\u6b63\u3057\u3066\u304f\u308c\u306a\u3044\u3002\u305d\u3053\u3067\u5225\u9014\u306bchcon\u3067selinux\u306e\u8a2d\u5b9a\u3092\u4fee\u6b63\u3059\u308b\u3002\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>darkgray\u30b5\u30fc\u30d0\uff08\u3053\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\uff09\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u8a2d\u5b9a\u3092\u5185\u90e8\u306e\u4e8b\u60c5\u306b\u3088\u308a\u5909\u66f4\u3059\u308b\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=205"}],"version-history":[{"count":0,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions"}],"wp:attachment":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}