{"id":9893,"date":"2019-02-18T16:09:03","date_gmt":"2019-02-18T07:09:03","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=9893"},"modified":"2019-02-18T16:09:03","modified_gmt":"2019-02-18T07:09:03","slug":"laravel%e3%81%a7%e3%80%81404%e3%82%a8%e3%83%a9%e3%83%bc-permission-deneid%e3%81%ab%e5%af%be%e5%87%a6","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9893","title":{"rendered":"Laravel\u3067\u3001404\u30a8\u30e9\u30fc permission deneid\u306b\u5bfe\u51e6"},"content":{"rendered":"<p>Laravel\u3092CentOS\u3001nginx\u74b0\u5883\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u521d\u671f\u8a2d\u5b9a\u5b8c\u4e86\u5f8c\u306b\u30b5\u30a4\u30c8\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001404\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b\u3068<\/p>\n<p>permisson denied<\/p>\n<p>\u304c\u767a\u751f<\/p>\n<p>php\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u62d2\u5426\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u8a72\u5f53\u306e\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092<\/p>\n<p>chmod 777 \u30a8\u30e9\u30fc\u304c\u8d77\u304d\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb<\/p>\n<p>\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u7d50\u679c\u3001\u305d\u3053\u304b\u3089\u5148\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3055\u3089\u306b\u30a8\u30e9\u30fc<\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u5168\u3066777\u306b\u3057\u305f\u3089\u3044\u3051\u308b\u3093\u3067\u3057\u3087\u3046\u3051\u3069\u3001\u305d\u308c\u306f\u305d\u308c\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u4e0d\u5b89\u304c\u6b8b\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3082\u305d\u3082\u3001nginx\u74b0\u5883\u306ephp\u306e\u30b5\u30a4\u30c8\u3067\u3001\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u3063\u3066\u3069\u306e\u30e6\u30fc\u30b6\u306a\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>ps\u3000\u30b3\u30de\u30f3\u30c9\u3067\u30d7\u30ed\u30bb\u30b9\u3092\u76e3\u8996\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068<\/p>\n<p>httpd php-fpm<\/p>\n<p>\u3068\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u30e6\u30fc\u30b6\u300chttpd\u300d\u304c\u5b9f\u884c\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u300chttp\u300d\u304c\u5c5e\u3057\u3066\u3044\u308b\u30b0\u30eb\u30fc\u30d7\u306f\u3069\u3053\u306a\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>groups httpd<\/p>\n<p>httpd : www<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001httpd\u30e6\u30fc\u30b6\u306f\u3001\u30b0\u30eb\u30fc\u30d7\u300cwww\u300d\u306b\u6240\u5c5e\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u306e\u30aa\u30fc\u30ca\u30fc\u3092www\u306b\u5909\u66f4\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>chown -R \u30e6\u30fc\u30b6\u540d:www \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u540d<\/p>\n<p>\u3053\u308c\u3067\u3001\u8a72\u5f53\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u30aa\u30fc\u30ca\u30fc\u306e\u30b0\u30eb\u30fc\u30d7\u304c\u300cwww\u300d\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u6d88\u3048\u3066\u7121\u4e8b\u306b\u30b5\u30a4\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel\u3092CentOS\u3001nginx\u74b0\u5883\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u521d\u671f\u8a2d\u5b9a\u5b8c\u4e86\u5f8c\u306b\u30b5\u30a4\u30c8\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001404\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002 \u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b\u3068 permisson denied \u304c\u767a\u751f php\u30d5\u30a1\u30a4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140,131],"tags":[],"class_list":["post-9893","post","type-post","status-publish","format-standard","hentry","category-laravel","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9893"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9893\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}