{"id":41,"date":"2021-12-27T13:00:40","date_gmt":"2021-12-27T05:00:40","guid":{"rendered":"https:\/\/www.daogu.work\/?p=41"},"modified":"2022-01-10T21:29:52","modified_gmt":"2022-01-10T13:29:52","slug":"nextcloud%e5%8a%a0%e8%bd%bd%e5%9b%be%e7%89%87%e5%87%ba%e9%94%99%e6%80%8e%e4%b9%88%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/daogu.work\/?p=41","title":{"rendered":"nextcloud\u52a0\u8f7d\u56fe\u7247\u51fa\u9519\u600e\u4e48\u89e3\u51b3?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">01.\u62a5\u9519\u4fe1\u606f:<\/h2>\n\n\n\n<p>\u5584\u4e8e\u4f7f\u7528nginx\u7684error.log\u65e5\u5fd7<\/p>\n\n\n\n<p><code>tail -f \/var\/log\/nginx\/error.log<\/code><\/p>\n\n\n\n<p><code>open() \"\/var\/cache\/nginx\/fastcgi_temp\/2\/12\/0000000122\" failed (13: Permission denied) while reading upstream, client: 14.xx.xx.xx, server: xxxx request: \"GET \/settings\/apps\/list HTTP\/2.0\", upstream: \"fastcgi:\/\/unix:\/run\/php-fpm\/www.sock:\", host: xxx.xxx.xxx\":443\":<\/code><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">02.\u89e3\u51b3\u529e\u6cd5<\/h2>\n\n\n\n<p>\u7ed9\u8fd0\u884cphp\u7684\u7528\u6237,\u52a0\u4e0a\u6743\u9650.<\/p>\n\n\n\n<p>\u6211\u8fd9\u91cc\u5bf9\u5e94\u7684\u76ee\u5f55\u662f\/var\/cache\/nginx<\/p>\n\n\n\n<p>\u5bf9\u5e94\u7528\u6237:www-data<\/p>\n\n\n\n<p><code>chown -Rf www-data<meta charset=\"utf-8\">:<meta charset=\"utf-8\">www-data \/var\/cache\/nginx<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">03.\u901a\u7528\u5904\u7406\u529e\u6cd5<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>\u770b\u65e5\u5fd7.\u67e5\u770bnginx error\u65e5\u5fd7<\/li><li>\u770b\u6743\u9650.\u6709\u6743\u9650\u95ee\u9898,\u5c31\u5b9a\u4f4d\u5230\u76f8\u5e94\u7684\u76ee\u5f55<\/li><li>\u770b\u7528\u6237.<\/li><li>\u52a0\u6743\u9650.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5:<\/h3>\n\n\n\n<p>01.<a href=\"https:\/\/serverfault.com\/questions\/501258\/php-fpm-gives-permission-denied\">PHP FPM gives permission denied?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>01.\u62a5\u9519\u4fe1\u606f: \u5584\u4e8e\u4f7f\u7528nginx\u7684error.log\u65e5\u5fd7 tail -f \/var\/log\/nginx\/e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[9],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-softinstall","tag-nextcloud"],"_links":{"self":[{"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daogu.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41"}],"version-history":[{"count":8,"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":87,"href":"https:\/\/daogu.work\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions\/87"}],"wp:attachment":[{"href":"https:\/\/daogu.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daogu.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daogu.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}