{"id":9952,"date":"2021-02-13T17:29:20","date_gmt":"2021-02-13T08:29:20","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=9952"},"modified":"2021-02-16T05:52:08","modified_gmt":"2021-02-15T20:52:08","slug":"laravel7%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%9f%e8%a8%98%e9%8c%b2","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9952","title":{"rendered":"Laravel7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u8a18\u9332"},"content":{"rendered":"\n<p>Laravel7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u306b\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u308a\u3057\u3066\u5fae\u5999\u306b\u82e6\u52b4\u3057\u305f\u306e\u3067\u30e1\u30e2\u3002<\/p>\n\n\n\n<p>\u74b0\u5883<\/p>\n\n\n\n<p>CentOS<\/p>\n\n\n\n<p>php7<\/p>\n\n\n\n<p>\u4ee5\u524d\u5225\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u540c\u3058\u30b5\u30fc\u30d0\u306bLaravel\u3092\u5165\u308c\u3066\u3044\u305f(5\u7cfb)<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u3001\u624b\u9806\u306b\u5f93\u3063\u3066\u3001Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">composer global require laravel\/installer<\/pre>\n\n\n\n<p>\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c<\/p>\n\n\n\n<p>SHA384 is not supported by your openssl extension, could not verify the phar file integrity<\/p>\n\n\n\n<p>\u8abf\u3079\u3066\u307f\u308b\u3068\u3001composer\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u3044\u305f\u3081\u306bLaravel7\u7cfb\u306e\u5834\u5408\u306f\u5408\u308f\u306a\u3044\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<p>composer\u306e\u6700\u65b0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f1\u7cfb\u3001Laravel\u306f7\u7cfb\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u304c\u99c4\u76ee\u3063\u3066\u3053\u3068\u304b\u3002<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001composer\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6700\u65b0\u7248\u306e2\u7cfb\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/qiita.com\/onkbear\/items\/f98d274d38eacfe7a209\">\u3053\u306e\u8a18\u4e8b\u3092\u53c2\u8003<\/a>\u306bcomposer\u306e\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u65bd\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>composer\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001<a href=\"https:\/\/getcomposer.org\/download\/\">\u516c\u5f0f\u306e\u8a18\u4e8b<\/a>\u3092\u53c2\u8003\u306b\u3057\u305f\u3089\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7d50\u679c\u3001composer\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u6700\u65b0\u306e2\u7cfb\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>composer -V<\/p>\n\n\n\n<p>Composer version 2.0.9<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3001\u518d\u5ea6Laravel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c<\/p>\n\n\n\n<p>\u3059\u308b\u3068\u3001\u4eca\u5ea6\u306f\u307e\u305f\u5225\u306e\u30a8\u30e9\u30fc\u304c<\/p>\n\n\n\n<p>Installation failed, reverting .\/composer.json and .\/composer.lock to their original content.<\/p>\n\n\n\n<p>\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u306f\u3001\u6700\u521d\u898b\u3066\u3088\u304f\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6700\u7d42\u7684\u306b\u5206\u304b\u3063\u305f\u3053\u3068\u3068\u3057\u3066\u306f\u3001\u4eca\u56de\u5b9f\u884c\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b<\/p>\n\n\n\n<p>composer global require laravel\/installer<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u306f\u3001Laravel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u4f5c\u6210\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3042\u3063\u3066\u3001\u305d\u308c\u304c\u540c\u3058\u30b5\u30fc\u30d0\u306b\u3059\u3067\u306b\u4f5c\u6210\u3057\u3066\u3044\u305fLaravel\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\uff085\u7cfb\uff09\u306e\u4f5c\u6210\u6642\u306b\u3059\u3067\u306b\u8a2d\u7f6e\u3057\u3066\u3044\u305fLaravel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u304c\u3042\u308a\u3001\u305d\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306ecomposer.json\u3068composer.lock\u3068\u5185\u5bb9\u304c\u7af6\u5408\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u3088\u3046\u306a\u610f\u5473\u3060\u3063\u305f\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u904e\u53bb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u3082\u3046\u3059\u3067\u306b\u66f4\u65b0\u3057\u3066\u306a\u3044\u30b5\u30a4\u30c8\u3060\u3063\u305f\u306e\u3082\u3042\u308a\u3001\u904e\u53bb\u306b\u4f5c\u6210\u3057\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u3001\u4e00\u65e6\u30ea\u30cd\u30fc\u30e0(\u524a\u9664\u3059\u308b\u306e\u306f\u4f55\u304b\u6016\u304b\u3063\u305f\u306e\u3067\u30ea\u30cd\u30fc\u30e0\uff09\u3059\u308b\u3053\u3068\u3067\u3001\u4e0a\u624b\u304f\u8a2d\u7f6e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Laravel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u306f\u3001\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u7570\u306a\u308a\u307e\u3059\u304c\u3001\u81ea\u5206\u306e\u74b0\u5883\u306e\u5834\u5408\u306f<\/p>\n\n\n\n<p>\/home\/.config\/<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u304c\u305d\u3046\u3060\u3063\u305f\uff08\u305d\u308c\u4ee5\u4e0b\u306bLaravel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u304c\u5165\u3063\u3066\u3044\u305f\uff09\u306e\u3067\u3001\u4e0a\u8a18\u30d5\u30a9\u30eb\u30c0\u3092\u30ea\u30cd\u30fc\u30e0\u5f8c\u306b\u30b5\u30a4\u30c9\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u4e0a\u8a18\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u65b0\u3057\u304f\u4f5c\u6210\u3055\u308c\u3001\u305d\u3053\u306bLarvel7\u306b\u5fc5\u8981\u3060\u3063\u305fcomposer.json\u3001composer.lock\u3082\u65b0\u3057\u304f\u4f5c\u3089\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3001Laravel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u884c<\/p>\n\n\n\n<p>laravel new \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u30fb\u30fb\u30fb<\/p>\n\n\n\n<p>bash: laravel: \u30b3\u30de\u30f3\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093<\/p>\n\n\n\n<p>\u8abf\u3079\u3066\u307f\u308b\u3068\u3001Laravel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3078\u306e\u30d1\u30b9\u304c\u901a\u3063\u3066\u306a\u3044\u307f\u305f\u3044\u3067\u3001\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e.bash_profile\u306b\u30d1\u30b9\u3092\u8a2d\u5b9a\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u78ba\u8a8d\u3059\u308b\u3068\u3059\u3067\u306b\u30d1\u30b9\u306e\u8a18\u8ff0\u304c\u3042\u308b\u30fb\u30fb\u30fb\u3002\u3060\u3068\u3059\u308b\u3068\u306a\u305c\uff1f<\/p>\n\n\n\n<p>source .bash_profile<\/p>\n\n\n\n<p>\u3092\u3059\u308b\u3053\u3068\u3067\u8aad\u307f\u8fbc\u307e\u308c\u305f\u307f\u305f\u3044\u3067\u3001\u7121\u4e8bLaravel\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Laravel\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c<\/p>\n\n\n\n<p>The stream or file &#8220;\/storage\/logs\/laravel.log&#8221; could not be opened in append mode: failed to open stream: Permission denied<\/p>\n\n\n\n<p>\u8abf\u3079\u308b\u3068\u30a2\u30af\u30bb\u30b9\u6a29\u304c\u306a\u3044\u3068\u304b\u3046\u3053\u3068\u307f\u305f\u3044\u3067\u3001<\/p>\n\n\n\n<p>chmod -R 777 storage<\/p>\n\n\n\n<p>\u3067\u89e3\u6c7a\u3002755\u3067\u3044\u3051\u308b\u3068\u304b\u66f8\u3044\u3066\u305f\u3051\u3069\u3069\u3046\u306b\u3082\u306a\u3089\u305a\u3001777\u306b\u3057\u305f\u3089\u3044\u3051\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u306b\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u308a\u3057\u3066\u5fae\u5999\u306b\u82e6\u52b4\u3057\u305f\u306e\u3067\u30e1\u30e2\u3002 \u74b0\u5883 CentOS php7 \u4ee5\u524d\u5225\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u540c\u3058\u30b5\u30fc\u30d0\u306bLaravel\u3092\u5165\u308c\u3066\u3044\u305f(5\u7cfb) \u307e\u305a\u306f\u3001\u624b\u9806\u306b\u5f93\u3063\u3066\u3001Laravel [&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],"tags":[],"class_list":["post-9952","post","type-post","status-publish","format-standard","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9952","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=9952"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9952\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}