{"id":9894,"date":"2019-02-18T20:08:55","date_gmt":"2019-02-18T11:08:55","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=9894"},"modified":"2019-02-18T20:10:00","modified_gmt":"2019-02-18T11:10:00","slug":"laravel%e3%81%ae%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%80%81%e3%83%95%e3%82%a9%e3%83%ab%e3%83%80%e3%81%ae%e3%83%91%e3%83%bc%e3%83%9f%e3%83%83%e3%82%b7%e3%83%a7%e3%83%b3%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9894","title":{"rendered":"Laravel\u306e\u30d5\u30a1\u30a4\u30eb\u3001\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u8a2d\u5b9a"},"content":{"rendered":"<p>Laravel\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u8a18\u4e8b\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/qiita.com\/engulisyu\/items\/ad819d06ea0cd31411df\">Laravel\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u9069\u5207\u306b\u8a2d\u5b9a | Qiita<\/a><\/p>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u6a29\u9650\u3092\u5909\u66f4<br \/>\nsudo find laravel-root-directory -type d -exec chmod 750 {} \\;<\/p>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f750\u306a\u306e\u3067\u3001\u6240\u6709\u8005\u306f\u5168\u90e8\u53ef\u80fd\u3001\u30b0\u30eb\u30fc\u30d7\u306f\u8aad\u307f\u5b9f\u884c\u53ef\u80fd\u3001\u305d\u306e\u4ed6\u306f\u3067\u304d\u306a\u3044\u8a2d\u5b9a<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u6a29\u9650\u3092\u5909\u66f4<br \/>\nsudo find laravel-root-directory -type f -exec chmod 640 {} \\;<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u306f640\u306a\u306e\u3067\u3001\u6240\u6709\u8005\u306f\u8aad\u307f\u3001\u4e0a\u66f8\u304d\u53ef\u80fd\u3001\u30b0\u30eb\u30fc\u30d7\u306f\u8aad\u307f\u306e\u307f\u53ef\u80fd\u3001\u305d\u306e\u4ed6\u306f\u3067\u304d\u306a\u3044\u8a2d\u5b9a<\/p>\n<p>\u6700\u5f8c\u306b\u30b9\u30c8\u30ec\u30fc\u30b8\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6a29\u9650\u3092\u5909\u66f4<br \/>\nsudo chmod -R 770 laravel-root-directory\/storage\/ laravel-root-directory\/bootstrap\/cache\/<\/p>\n<p>\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u30d5\u30a9\u30eb\u30c0\u306f\u6240\u6709\u8005\u3001\u30b0\u30eb\u30fc\u30d7\u306f\u5168\u90e8\u53ef\u80fd\u3002\u305d\u306e\u4ed6\u306f\u3067\u304d\u306a\u3044\u8a2d\u5b9a\u3002<\/p>\n<p>web\u30b5\u30fc\u30d0\u30fc\u306eApache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u4f5c\u6210\u3055\u308c\u308bwww-data\u3092\u30b0\u30eb\u30fc\u30d7\u306b\u8ffd\u52a0\u3059\u308b<br \/>\nsudo chown -R myusername:www-data laravel-root-directory<\/p>\n<p>\u3053\u308c\u306f\u3001\u4e0a\u8a18\u306fwww-data\u30b0\u30eb\u30fc\u30d7\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u81ea\u5206\u306e\u74b0\u5883\uff08CentOS\u3001nginx\uff09\u3067\u306f\u3001httpd\u306e\u30b0\u30eb\u30fc\u30d7\u304cwww\u3060\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3067\u4e0a\u624b\u304f\u3044\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>sudo chown -R myusername:www laravel-root-directory<\/p>\n<p>\u30b0\u30eb\u30fc\u30d7\u300cwww\u300d\u304cphp\u3092\u81ea\u5206\u306e\u74b0\u5883\u306e\u5834\u5408\u5b9f\u884c\u3057\u3066\u3044\u308b\u306e\u3067\u3001php\u30d5\u30a1\u30a4\u30eb\u306f\u8aad\u307f\u51fa\u3057\u306e\u307f\u306e\u8a2d\u5b9a\u3067\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\nphp\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u884c\u6a29\u9650\u306f\u3001\u6240\u6709\u8005\u3001\u30b0\u30eb\u30fc\u30d7\u3068\u3082\u8aad\u307f\u306e\u307f\u3067\u554f\u984c\u306a\u3044\u3093\u3067\u3059\u306d\u3002<br \/>\n\u5b9f\u884c\u6a29\u9650\u304c\u5fc5\u8981\u306a\u306e\u304b\u306a\u3068\u30a4\u30e1\u30fc\u30b8\u7684\u306b\u306f\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3002<\/p>\n<p>\u4f8b\u3048\u3070Perl\u306a\u3093\u304b\u306fCGI\u3067755\u306b\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3057\u305f\u304c\u3001755\u3063\u3066\u306e\u306f\u6240\u6709\u8005\u306f\u5168\u90e8\u3067\u304d\u3066\u3001\u30b0\u30eb\u30fc\u30d7\u30e6\u30fc\u30b6\u304c\u8aad\u307f\u3001\u5b9f\u884c\u6a29\u9650\u304c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3082\u3093\u306d\u30fb\u30fb\u30fb\u3002<\/p>\n<p>\u4f7f\u3063\u3066\u3044\u308bPHP\u306fPHP-\uff46\uff50\uff4d\u306a\u306e\u3067\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u7248\u3067\u306f\u306a\u304f\u3066CGI\u7248\u306a\u306e\u3067\u3059\u304c\u3001\u540c\u3058CGI\u3067\u3082Perl\u3068PHP-FPM\u3067\u306f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u304c\u9055\u3046\u3068\u3001\u3053\u308c\u306f\u3084\u3084\u3053\u3057\u3044\u8a71\u3067\u3059\u30fb\u30fb\u30fb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u3067\u3059\u3002 \u4e0b\u8a18\u306e\u8a18\u4e8b\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3002 Laravel\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u9069\u5207\u306b\u8a2d\u5b9a | Qiita \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u6a29\u9650\u3092\u5909\u66f4 sudo find lar [&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,144,131],"tags":[],"class_list":["post-9894","post","type-post","status-publish","format-standard","hentry","category-laravel","category-php-","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9894","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=9894"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9894\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}