{"id":982,"date":"2023-10-12T23:00:52","date_gmt":"2023-10-12T14:00:52","guid":{"rendered":"https:\/\/shinke1987.net\/?p=982"},"modified":"2023-10-12T23:00:53","modified_gmt":"2023-10-12T14:00:53","slug":"composer%e3%81%a7laravel%e3%81%ae%e3%82%bb%e3%83%83%e3%83%88%e3%82%a2%e3%83%83%e3%83%97","status":"publish","type":"post","link":"https:\/\/shinke1987.net\/?p=982","title":{"rendered":"composer\u3067Laravel\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7"},"content":{"rendered":"\n<h2 id=\"toc0\" class=\"wp-block-heading\">\u74b0\u5883<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>composer<br>v2.6.5<\/li>\n\n\n\n<li>WSL\u3068Docker(Debian bookworm)<\/li>\n<\/ul>\n\n\n\n<p>Docker\u74b0\u5883\u306e\u69cb\u7bc9\u306f\u6b21\u306e\u30da\u30fc\u30b8\u306b\u30ed\u30b0\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-shinke-1987-net wp-block-embed-shinke-1987-net\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"5mwPkcCXD8\"><a href=\"https:\/\/shinke1987.net\/?p=979\">Docker\u3067\u7df4\u7fd2\u7528Apache+PHP\u74b0\u5883\u3092\u6e96\u5099<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Docker\u3067\u7df4\u7fd2\u7528Apache+PHP\u74b0\u5883\u3092\u6e96\u5099&#8221; &#8212; shinke1987.net\" src=\"https:\/\/shinke1987.net\/?p=979&#038;embed=true#?secret=ht6wy5RWj4#?secret=5mwPkcCXD8\" data-secret=\"5mwPkcCXD8\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 id=\"toc1\" class=\"wp-block-heading\">\u624b\u9806<\/h2>\n\n\n\n<p>\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30b7\u30a7\u30eb\u3078\u5165\u308a\u3001\u6b21\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7528\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# composer create-project laravel\/laravel \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\n<\/pre><\/div>\n\n\n<p>\u6b21\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\u3001<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nFailed to download laravel\/laravel from dist: The zip extension and unzip\/7z commands are both missing,\n<\/pre><\/div>\n\n\n<p>unzip\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# apt-get install -y unzip\n<\/pre><\/div>\n\n\n<p>\u518d\u5ea6\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7528\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u7d50\u679c\u306b\u306a\u3063\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n59 package suggestions were added by new dependencies, use `composer suggest` to see details.\nGenerating optimized autoload files\n&gt; Illuminate\\Foundation\\ComposerScripts::postAutoloadDump\n&gt; @php artisan package:discover --ansi\n   INFO  Discovering packages.\n  laravel\/sail .................................................................................................. DONE\n  laravel\/sanctum ............................................................................................... DONE\n  laravel\/tinker ................................................................................................ DONE\n  nesbot\/carbon ................................................................................................. DONE\n  nunomaduro\/collision .......................................................................................... DONE\n  nunomaduro\/termwind ........................................................................................... DONE\n  spatie\/laravel-ignition ....................................................................................... DONE\n82 packages you are using are looking for funding.\nUse the `composer fund` command to find out more!\n&gt; @php artisan vendor:publish --tag=laravel-assets --ansi --force\n   INFO  No publishable resources for tag &#x5B;laravel-assets].\nNo security vulnerability advisories found.\n&gt; @php artisan key:generate --ansi\n   INFO  Application key set successfully.\n<\/pre><\/div>\n\n\n<p>\u6b21\u306eURL\u306bWeb\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001Laravel\u306e\u30da\u30fc\u30b8\u304c\u8868\u793a\u3067\u304d\u305f\u3002<\/p>\n\n\n\n<p>http:\/\/localhost\/\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\/public<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u6b21\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nAllowed memory size of 134217728 bytes exhausted (tried to allocate 11809800 bytes)\n<\/pre><\/div>\n\n\n<p>\u8abf\u3079\u308b\u3068\u3001php.ini\u3067\u306ememory_limit\u306e\u5024\u304c\u539f\u56e0\u3089\u3057\u3044\u3002(128MB\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u305f)<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmemory_limit = -1\n<\/pre><\/div>\n\n\n<p>\u3092\u6307\u5b9a\u3059\u308b\u3068\u30e1\u30e2\u30ea\u3092\u7121\u5236\u9650\u306b\u4f7f\u7528\u3059\u308b\u3089\u3057\u3044\u306e\u3067\u3001\u30a8\u30e9\u30fc\u3092\u6d88\u3059\u305f\u3081\u306b\u305d\u3046\u6307\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<p>Docker\u306b\u3066prefork\u306eApache\u3067PHP\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u306e\u3067\u3001Docker\u30b3\u30f3\u30c6\u30ca\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<br>(prefork\u306e\u5834\u5408\u3001php.ini\u306fApache\u8d77\u52d5\u6642\u306b\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3089\u3057\u3044)<\/p>\n\n\n\n<p>\u305d\u308c\u304b\u3089Web\u30d6\u30e9\u30a6\u30b6\u3067\u4e0a\u8a18URL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u6b21\u306f\u3053\u306e\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nMaximum execution time of 30 seconds exceeded\n<\/pre><\/div>\n\n\n<p>\u4f5c\u6210\u3055\u308c\u305fLaravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u5bfe\u3057\u3066\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n\n\n\n<p># chmod -R 777 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u540d<\/p>\n\n\n\n<p>\u305d\u308c\u304b\u3089Web\u30d6\u30e9\u30a6\u30b6\u3067\u4e0a\u8a18URL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001welcome\u30d3\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u74b0\u5883 Docker\u74b0\u5883\u306e\u69cb\u7bc9\u306f\u6b21\u306e\u30da\u30fc\u30b8\u306b\u30ed\u30b0\u304c\u3042\u308b\u3002 \u624b\u9806 \u30b3\u30f3\u30c6\u30ca\u5185\u306e\u30b7\u30a7\u30eb\u3078\u5165\u308a\u3001\u6b21\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7528\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3002 \u6b21\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\u3001 unzip\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 \u518d\u5ea6\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7528\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[91,98,88,81],"class_list":["post-982","post","type-post","status-publish","format-standard","hentry","category-laravel","tag-composer","tag-docker","tag-laravel","tag-php"],"_links":{"self":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=982"}],"version-history":[{"count":5,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/982\/revisions"}],"predecessor-version":[{"id":987,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/982\/revisions\/987"}],"wp:attachment":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}