{"id":7376,"date":"2021-06-19T16:32:04","date_gmt":"2021-06-19T07:32:04","guid":{"rendered":"https:\/\/www.stuffy.site\/computers\/?p=7376"},"modified":"2022-04-23T08:03:41","modified_gmt":"2022-04-22T23:03:41","slug":"wordpress%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%83%91%e3%83%bc%e3%83%9f%e3%83%83%e3%82%b7%e3%83%a7%e3%83%b3","status":"publish","type":"post","link":"https:\/\/www.stuffy.site\/computers\/archives\/7376","title":{"rendered":"WordPress\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3"},"content":{"rendered":"\n<p>WordPress5.7.2\u3078\u306e\u81ea\u52d5\u66f4\u65b0\u306e\u969b\u306b\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3064\u307e\u305a\u3044\u305f\u3068\u304d\u306e\u5bfe\u51e6\u6cd5\u3092\u30e1\u30e2\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u300c\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u66f4\u65b0\u304c\u60f3\u5b9a\u901a\u308a\u306b\u52d5\u4f5c\u3057\u3066\u3044\u307e\u305b\u3093\u300d<\/p>\n\n\n\n<p>\u300c\u4e00\u90e8\u306e\u30d5\u30a1\u30a4\u30eb\u304cWordpress\u304b\u3089\u66f8\u304d\u8fbc\u307f\u3067\u304d\u307e\u305b\u3093\u3002\u300d<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Google\u5148\u751f\u306b\u8a0a\u3044\u305f\u3068\u3053\u308d\u3001\u4e00\u6642\u7684\u306bSElinux\u3092\u7121\u52b9\u306b\u3059\u308b\u30b3\u30de\u30f3\u30c9setenforce 0 \u3068\u3059\u308b\u3068\u624b\u52d5\u66f4\u65b0\u3092\u30d1\u30b9\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u306a\u306e\u3067\u4eca\u56de\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u3088\u308bWordpress\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306eSElinux\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u6c38\u7d9a\u7684\u306b\u5909\u66f4\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001\u4ee5\u4e0b\u306esemanage\u30b3\u30de\u30f3\u30c9\u3067wp-config.php \u4ee5\u5916\u306eWordpress\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30a1\u30a4\u30eb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092<\/p>\n\n\n<pre><span style=\"color: #0000ff; font-size: 14pt;\"># semanage fcontext -a -t httpd_sys_rw_content_t \"\/var\/www\/html\/wordpress(\/.*)?\"\n# semanage fcontext -a -t httpd_sys_content_t \"\/var\/www\/html\/wordpress\/wp-config.php\"<br># restorecon -R \/var\/www\/html\/wordpress<\/span><\/pre>\n\n\n<p>httpd_sys_content_t<\/p>\n\n\n\n<p>\u304b\u3089<\/p>\n\n\n\n<p>httpd_sys_rw_content_t<\/p>\n\n\n\n<p>\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u7121\u4e8b\u3001\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3078\u66f4\u65b0\u3092\u5b8c\u4e86\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u305d\u306e\u5f8c\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u7ba1\u7406\u753b\u9762\u306e[\u30c4\u30fc\u30eb]-[\u30b5\u30a4\u30c8\u30d8\u30eb\u30b9]-[\u60c5\u5831]-[\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3]\u304b\u3089\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/06\/wordpress_file_permission_2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"845\" height=\"336\" src=\"https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/06\/wordpress_file_permission_2.png\" alt=\"\" class=\"wp-image-7451\" srcset=\"https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/06\/wordpress_file_permission_2.png 845w, https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/06\/wordpress_file_permission_2-300x119.png 300w, https:\/\/www.stuffy.site\/computers\/wp-content\/uploads\/2021\/06\/wordpress_file_permission_2-768x305.png 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u53c2\u8003URL:<\/p>\n\n\n\n<p><a href=\"https:\/\/laboradian.com\/problem-web-server-can-not-overwrite-files\/\">Web\u30b5\u30fc\u30d0\u30fc\u304c\u30b5\u30a4\u30c8\u306e\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u3067\u304d\u306a\u3044\u554f\u984c\u306b\u5bfe\u5fdc\u3059\u308b\uff08SELinux\u304c\u539f\u56e0\u306e\u5834\u5408\uff09 \u2013 \u30e9\u30dc\u30e9\u30b8\u30a2\u30f3<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress5.7.2\u3078\u306e\u81ea\u52d5\u66f4\u65b0\u306e\u969b\u306b\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3064\u307e\u305a\u3044\u305f\u3068\u304d\u306e\u5bfe\u51e6\u6cd5\u3092\u30e1\u30e2\u3057\u307e\u3059\u3002 \u300c\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u66f4\u65b0\u304c\u60f3\u5b9a\u901a\u308a\u306b\u52d5\u4f5c\u3057\u3066\u3044\u307e\u305b\u3093\u300d \u300c\u4e00\u90e8\u306e\u30d5\u30a1\u30a4\u30eb\u304cWordpress\u304b\u3089\u66f8\u304d\u8fbc\u307f\u3067\u304d\u307e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,36,4],"tags":[],"class_list":["post-7376","post","type-post","status-publish","format-standard","hentry","category-centos7","category-selinux","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/posts\/7376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/comments?post=7376"}],"version-history":[{"count":28,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/posts\/7376\/revisions"}],"predecessor-version":[{"id":8621,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/posts\/7376\/revisions\/8621"}],"wp:attachment":[{"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/media?parent=7376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/categories?post=7376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stuffy.site\/computers\/wp-json\/wp\/v2\/tags?post=7376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}