{"id":1231,"date":"2024-08-08T11:28:01","date_gmt":"2024-08-08T02:28:01","guid":{"rendered":"https:\/\/shinke1987.net\/?p=1231"},"modified":"2024-08-08T11:28:01","modified_gmt":"2024-08-08T02:28:01","slug":"gaephp%e3%81%ae%e5%8b%95%e4%bd%9c%e7%a2%ba%e8%aa%8d","status":"publish","type":"post","link":"https:\/\/shinke1987.net\/?p=1231","title":{"rendered":"GAE(PHP)\u306e\u52d5\u4f5c\u78ba\u8a8d"},"content":{"rendered":"\n<h2 id=\"toc0\" class=\"wp-block-heading\">\u76ee\u7684<\/h2>\n\n\n\n<p>phpinfo()\u95a2\u6570\u306e\u7d50\u679c\u3092Web\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\u3059\u308b\u3002<\/p>\n\n\n\n<h2 id=\"toc1\" class=\"wp-block-heading\">\u524d\u63d0<\/h2>\n\n\n\n<p>OS\uff1amacOS 14.5 sonoma<\/p>\n\n\n\n<p>GoogleCloudConsole\u306b\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001GAE\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3(PHP)\u3092\u4f5c\u6210\u6e08\u307f\u3002<\/p>\n\n\n\n<p>GAE\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30af\u30e9\u30b9\u306fF1\u3002<\/p>\n\n\n\n<h2 id=\"toc2\" class=\"wp-block-heading\">Google Cloud CLI \u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h2>\n\n\n\n<p><a href=\"https:\/\/cloud.google.com\/sdk\/docs\/install-sdk?hl=ja\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30af\u30a4\u30c3\u30af\u30b9\u30bf\u30fc\u30c8: Google Cloud CLI \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b | Google Cloud CLI Documentation<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4e0a\u8a18\u30da\u30fc\u30b8\u304b\u3089\u300cmacOS 64\u30d3\u30c3\u30c8 (ARM64, AppleM1 silicon) \u300d\u7528\u306etar.gz\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001<\/p>\n\n\n\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4efb\u610f\u306e\u5834\u6240\u3078\u79fb\u52d5\u3057\u3001\u5c55\u958b\u3059\u308b\u305f\u3081\u306b\u4e0b\u8a18\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% mkdir ~\/Development\/GoogleAppEngine\n% mv ~\/Downloads\/google-cloud-cli-VERSION-darwin-arm.tar ~\/Development\/GoogleAppEngine\n% cd ~\/Development\/GoogleAppEngine\n% tar xvf google-cloud-cli-VERSION-darwin-arm.tar\n<\/pre><\/div>\n\n\n<p>\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\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% .\/google-cloud-sdk\/install.sh\n<\/pre><\/div>\n\n\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u805e\u304b\u308c\u308b\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u56de\u7b54\u3059\u308b\u3002<\/p>\n\n\n\n<p>\uff08\u9014\u4e2d\u3067sudo\u7528\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u305f\u308a\u3059\u308b\uff09<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nWelcome to the Google Cloud CLI!\n\nTo help improve the quality of this product, we collect anonymized usage data\nand anonymized stacktraces when crashes are encountered; additional information\nis available at &amp;lt;https:\/\/cloud.google.com\/sdk\/usage-statistics&gt;. This data is\nhandled in accordance with our privacy policy\n&amp;lt;https:\/\/cloud.google.com\/terms\/cloud-privacy-notice&gt;. You may choose to opt in this\ncollection now (by choosing &#039;Y&#039; at the below prompt), or at any time in the\nfuture by running the following command:\n\n    gcloud config set disable_usage_reporting false\n\nDo you want to help improve the Google Cloud CLI (y\/N)?  y\n\n\nYour current Google Cloud CLI version is: 477.0.0\nThe latest available version is: 487.0.0\n\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n\u2502                                                     Components                                                     \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502      Status      \u2502                         Name                         \u2502              ID              \u2502    Size   \u2502\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\n\u2502 Update Available \u2502 BigQuery Command Line Tool                           \u2502 bq                           \u2502   1.7 MiB \u2502\n\u2502 Update Available \u2502 Cloud Storage Command Line Tool                      \u2502 gsutil                       \u2502  11.3 MiB \u2502\n\u2502 Update Available \u2502 Google Cloud CLI Core Libraries                      \u2502 core                         \u2502  19.3 MiB \u2502\n\u2502 Not Installed    \u2502 App Engine Go Extensions                             \u2502 app-engine-go                \u2502   4.5 MiB \u2502\n\u2502 Not Installed    \u2502 Appctl                                               \u2502 appctl                       \u2502  18.5 MiB \u2502\n\u2502 Not Installed    \u2502 Artifact Registry Go Module Package Helper           \u2502 package-go-module            \u2502   &amp;lt; 1 MiB \u2502\n\u2502 Not Installed    \u2502 Cloud Bigtable Command Line Tool                     \u2502 cbt                          \u2502  17.0 MiB \u2502\n\u2502 Not Installed    \u2502 Cloud Bigtable Emulator                              \u2502 bigtable                     \u2502   7.0 MiB \u2502\n\u2502 Not Installed    \u2502 Cloud Datastore Emulator                             \u2502 cloud-datastore-emulator     \u2502  36.2 MiB \u2502\n\u2502 Not Installed    \u2502 Cloud Firestore Emulator                             \u2502 cloud-firestore-emulator     \u2502  45.2 MiB \u2502\n\u2502 Not Installed    \u2502 Cloud Pub\/Sub Emulator                               \u2502 pubsub-emulator              \u2502  63.7 MiB \u2502\n\u2502 Not Installed    \u2502 Cloud Run Proxy                                      \u2502 cloud-run-proxy              \u2502  11.3 MiB \u2502\n\u2502 Not Installed    \u2502 Cloud SQL Proxy v2                                   \u2502 cloud-sql-proxy              \u2502  13.2 MiB \u2502\n\u2502 Not Installed    \u2502 Google Container Registry&#039;s Docker credential helper \u2502 docker-credential-gcr        \u2502           \u2502\n\u2502 Not Installed    \u2502 Kustomize                                            \u2502 kustomize                    \u2502   7.4 MiB \u2502\n\u2502 Not Installed    \u2502 Log Streaming                                        \u2502 log-streaming                \u2502  11.9 MiB \u2502\n\u2502 Not Installed    \u2502 Minikube                                             \u2502 minikube                     \u2502  34.8 MiB \u2502\n\u2502 Not Installed    \u2502 Nomos CLI                                            \u2502 nomos                        \u2502  30.1 MiB \u2502\n\u2502 Not Installed    \u2502 On-Demand Scanning API extraction helper             \u2502 local-extract                \u2502  19.9 MiB \u2502\n\u2502 Not Installed    \u2502 Skaffold                                             \u2502 skaffold                     \u2502  22.9 MiB \u2502\n\u2502 Not Installed    \u2502 Terraform Tools                                      \u2502 terraform-tools              \u2502  63.6 MiB \u2502\n\u2502 Not Installed    \u2502 anthos-auth                                          \u2502 anthos-auth                  \u2502  20.9 MiB \u2502\n\u2502 Not Installed    \u2502 config-connector                                     \u2502 config-connector             \u2502  88.7 MiB \u2502\n\u2502 Not Installed    \u2502 enterprise-certificate-proxy                         \u2502 enterprise-certificate-proxy \u2502   8.3 MiB \u2502\n\u2502 Not Installed    \u2502 gcloud Alpha Commands                                \u2502 alpha                        \u2502   &amp;lt; 1 MiB \u2502\n\u2502 Not Installed    \u2502 gcloud Beta Commands                                 \u2502 beta                         \u2502   &amp;lt; 1 MiB \u2502\n\u2502 Not Installed    \u2502 gcloud app Java Extensions                           \u2502 app-engine-java              \u2502 127.8 MiB \u2502\n\u2502 Not Installed    \u2502 gcloud app Python Extensions                         \u2502 app-engine-python            \u2502   5.0 MiB \u2502\n\u2502 Not Installed    \u2502 gcloud app Python Extensions (Extra Libraries)       \u2502 app-engine-python-extras     \u2502   &amp;lt; 1 MiB \u2502\n\u2502 Not Installed    \u2502 gke-gcloud-auth-plugin                               \u2502 gke-gcloud-auth-plugin       \u2502   4.0 MiB \u2502\n\u2502 Not Installed    \u2502 istioctl                                             \u2502 istioctl                     \u2502  24.8 MiB \u2502\n\u2502 Not Installed    \u2502 kpt                                                  \u2502 kpt                          \u2502  13.8 MiB \u2502\n\u2502 Not Installed    \u2502 kubectl                                              \u2502 kubectl                      \u2502   &amp;lt; 1 MiB \u2502\n\u2502 Not Installed    \u2502 kubectl-oidc                                         \u2502 kubectl-oidc                 \u2502  20.9 MiB \u2502\n\u2502 Not Installed    \u2502 pkg                                                  \u2502 pkg                          \u2502           \u2502\n\u2502 Installed        \u2502 Google Cloud CRC32C Hash Tool                        \u2502 gcloud-crc32c                \u2502   1.2 MiB \u2502\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\nTo install or remove components at your current SDK version &#x5B;477.0.0], run:\n  $ gcloud components install COMPONENT_ID\n  $ gcloud components remove COMPONENT_ID\n\nTo update your SDK installation to the latest version &#x5B;487.0.0], run:\n  $ gcloud components update\n\n\nModify profile to update your $PATH and enable shell command completion?\n\nDo you want to continue (Y\/n)?  Y\n\nThe Google Cloud SDK installer will now prompt you to update an rc file to bring the Google Cloud CLIs into your environment.\n\nEnter a path to an rc file to update, or leave blank to use &#x5B;\/Users\/\u30e6\u30fc\u30b6\u540d\/.zshrc]:  \nBacking up &#x5B;\/Users\/maehara_shinsuke\/.zshrc] to &#x5B;\/Users\/maehara_shinsuke\/.zshrc.backup].\n&#x5B;\/Users\/maehara_shinsuke\/.zshrc] has been updated.\n\n==&gt; Start a new shell for the changes to take effect.\n\n\nGoogle Cloud CLI works best with Python 3.11 and certain modules.\n\nDownload and run Python 3.11 installer? (Y\/n)?  Y\n\nRunning Python 3.11 installer, you may be prompted for sudo password...\nPassword:\ninstaller: Package name is Python\ninstaller: Installing at base path \/\ninstaller: The install was successful.\nSetting up virtual environment\nCreating virtualenv...\nInstalling modules...\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 89.7\/89.7 kB 1.7 MB\/s eta 0:00:00\n  Installing build dependencies ... done\n  Getting requirements to build wheel ... done\n  Preparing metadata (pyproject.toml) ... done\n   \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 59.0\/59.0 kB 5.2 MB\/s eta 0:00:00\n   \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 10.4\/10.4 MB 21.1 MB\/s eta 0:00:00\n   \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 163.0\/163.0 kB 14.8 MB\/s eta 0:00:00\n   \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 5.3\/5.3 MB 19.8 MB\/s eta 0:00:00\n   \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 178.3\/178.3 kB 11.6 MB\/s eta 0:00:00\n   \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 117.6\/117.6 kB 12.3 MB\/s eta 0:00:00\n  Building wheel for crcmod (pyproject.toml) ... done\n\n\nUpdates are available for some Google Cloud CLI components.  To install them,\nplease run:\n  $ gcloud components update\n\nVirtual env enabled.\n\nFor more information on how to get started, please visit:\n  https:\/\/cloud.google.com\/sdk\/docs\/quickstarts\n<\/pre><\/div>\n\n\n<p>\u3053\u308c\u3067\u3068\u308a\u3042\u3048\u305a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3057\u305f\u304c\u3001\u6b21\u306f\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b.zshrc\u304c\u7de8\u96c6\u3055\u308c\u305f\u306e\u3067\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u65b0\u305f\u306b\u958b\u304d\u76f4\u3057\u3066\u304b\u3089\u3001\u6b21\u306e\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% gcloud components update\n<\/pre><\/div>\n\n\n<p>\u9014\u4e2d\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u308b\u3053\u3068\u3082\u3042\u308b\u304c\uff08Y\u30921\u56de\u62bc\u4e0b\u3059\u308b\u7a0b\u5ea6\uff09\u7d9a\u884c\u3059\u308b\u3068\u30ba\u30e9\u30ba\u30e9\u3068\u9577\u3044\u6587\u5b57\u5217\u304c\u8868\u793a\u3055\u308c\u3001\u6700\u7d42\u7684\u306b\u6b21\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPerforming post processing steps...done.                                      \n\nUpdate done!\n\nTo revert your CLI to the previously installed version, you may run:\n  $ gcloud components update --version 477.0.0\n<\/pre><\/div>\n\n\n<p>\u3053\u308c\u3067Google Cloud CLI \u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306f\u5b8c\u4e86\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 id=\"toc3\" class=\"wp-block-heading\">SDK\u306e\u521d\u671f\u5316<\/h2>\n\n\n\n<p>SDK\u3092\u521d\u671f\u5316\u3059\u308b\u305f\u3081\u306b\u6b21\u306e\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% gcloud init\n<\/pre><\/div>\n\n\n<p>\u3059\u308b\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306b\u805e\u304b\u308c\u308b\u306e\u3067\u3001\u9069\u5b9c\u5165\u529b\u3059\u308b\u3002<\/p>\n\n\n\n<p>\uff08\u30b5\u30a4\u30f3\u30a4\u30f3\u3059\u308b\u305f\u3081\u306eGoogle\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u9078\u629e\u3057\u305f\u308a\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u9078\u629e\u3059\u308b\uff09<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nWelcome! This command will take you through the configuration of gcloud.\n\nYour current configuration has been set to: &#x5B;default]\n\nYou can skip diagnostics next time by using the following flag:\n  gcloud init --skip-diagnostics\n\nNetwork diagnostic detects and fixes local network connection issues.\nChecking network connection...done.                                                                                                \nReachability Check passed.\nNetwork diagnostic passed (1\/1 checks passed).\n\nYou must sign in to continue. Would you like to sign in (Y\/n)?  Y\n\nYour browser has been opened to visit:\n\n    https:\/\/accounts.google.com\/o...URL\u304c\u8868\u793a\u3055\u308c\u308b...\n\nYou are signed in as: &#x5B;Google\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9].\n\nPick cloud project to use: \n &#x5B;1] gae-test-431804\n &#x5B;2] GCP\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d1\n &#x5B;3] GCP\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d1\n &#x5B;4] Enter a project ID\n &#x5B;5] Create a new project\nPlease enter numeric choice or text value (must exactly match list item):  1\n\nYour current project has been set to: &#x5B;gae-test-431804].\n\nNot setting default zone\/region (this feature makes it easier to use\n&#x5B;gcloud compute] by setting an appropriate default value for the\n--zone and --region flag).\nSee https:\/\/cloud.google.com\/compute\/docs\/gcloud-compute section on how to set\ndefault compute region and zone manually. If you would like &#x5B;gcloud init] to be\nable to do this for you the next time you run it, make sure the\nCompute Engine API is enabled for your project on the\nhttps:\/\/console.developers.google.com\/apis page.\n\nCreated a default .boto configuration file at &#x5B;\/Users\/Mac\u306e\u30e6\u30fc\u30b6\u540d\/.boto]. See this file and\n&#x5B;https:\/\/cloud.google.com\/storage\/docs\/gsutil\/commands\/config] for more\ninformation about configuring Google Cloud Storage.\nThe Google Cloud CLI is configured and ready to use!\n\n* Commands that require authentication will use Google\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9 by default\n* Commands will reference project `gae-test-431804` by default\nRun `gcloud help config` to learn how to change individual settings\n\nThis gcloud configuration is called &#x5B;default]. You can create additional configurations if you work with multiple accounts and\/or projects.\nRun `gcloud topic configurations` to learn more.\n\nSome things to try next:\n\n* Run `gcloud --help` to see the Cloud Platform services you can interact with. And run `gcloud help COMMAND` to get help on any gcloud command.\n* Run `gcloud topic --help` to learn about advanced features of the CLI like arg files and output formatting\n* Run `gcloud cheat-sheet` to see a roster of go-to `gcloud` commands.\n<\/pre><\/div>\n\n\n<h2 id=\"toc4\" class=\"wp-block-heading\">\u30c7\u30d7\u30ed\u30a4\u306e\u6e96\u5099<\/h2>\n\n\n\n<p><a href=\"https:\/\/cloud.google.com\/appengine\/docs\/standard\/php-gen2\/runtime?hl=ja\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">PHP 7 \/ 8 \u30e9\u30f3\u30bf\u30a4\u30e0\u74b0\u5883 | Google App Engine standard environment docs | Google Cloud<\/a><\/p>\n\n\n\n<p>\u4e0a\u8a18\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u4f5c\u696d\u30d5\u30a9\u30eb\u30c0\u306f ~\/Development\/GoogleAppEngine\/GAE-Test \u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3067\u884c\u3046\u3002<\/p>\n\n\n\n<p>\u4e0b\u8a182\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n\n\n\n<h3 id=\"toc5\" class=\"wp-block-heading\">GAE-Test\/app.yaml \u306e\u5185\u5bb9<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PHP8.3\u3092\u4f7f\u3046\u3002<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: yaml; title: ; notranslate\" title=\"\">\nruntime: php83\n<\/pre><\/div>\n\n\n<h3 id=\"toc6\" class=\"wp-block-heading\">GAE-Test\/index.php \u306e\u5185\u5bb9<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\nphpinfo();\n<\/pre><\/div>\n\n\n<h2 id=\"toc7\" class=\"wp-block-heading\">\u30c7\u30d7\u30ed\u30a4<\/h2>\n\n\n\n<p>app.yaml \u304c\u5b58\u5728\u3059\u308b\u3001~\/Development\/GoogleAppEngine\/GAE-Test \u30d5\u30a9\u30eb\u30c0\u306b\u3066\u3001\u6b21\u306e\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% gcloud app deploy\n<\/pre><\/div>\n\n\n<p>\u3059\u308b\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u3001\u6700\u7d42\u7684\u306b\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=\"\">\nServices to deploy:\n\ndescriptor:                  &#x5B;\/Users\/Mac\u306e\u30e6\u30fc\u30b6\u540d\/Development\/GoogleAppEngine\/GAE-Test\/app.yaml]\nsource:                      &#x5B;\/Users\/Mac\u306e\u30e6\u30fc\u30b6\u540d\/Development\/GoogleAppEngine\/GAE-Test]\ntarget project:              &#x5B;gae-test-431804]\ntarget service:              &#x5B;default]\ntarget version:              &#x5B;20240807t165719]\ntarget url:                  &#x5B;https:\/\/gae-test-431804.dt.r.appspot.com]\ntarget service account:      &#x5B;gae-test-431804@appspot.gserviceaccount.com]\n\n\nDo you want to continue (Y\/n)?  Y\n\nBeginning deployment of service &#x5B;default]...\nCreated .gcloudignore file. See `gcloud topic gcloudignore` for details.\n\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\n\u2560\u2550 Uploading 6 files to Google Cloud Storage                \u2550\u2563\n\u255a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255d\nFile upload done.\nUpdating service &#x5B;default]...failed.                                                                                               \nERROR: (gcloud.app.deploy) Error Response: &#x5B;13] Failed to create cloud build: com.google.net.rpc3.client.RpcClientException: &amp;lt;eye3 title=&#039;\/ArgoAdminNoCloudAudit.CreateBuild, FAILED_PRECONDITION&#039;\/&gt; APPLICATION_ERROR;google.devtools.cloudbuild.v1\/ArgoAdminNoCloudAudit.CreateBuild;invalid bucket &quot;staging.gae-test-431804.appspot.com&quot;; service account gae-test-431804@appspot.gserviceaccount.com does not have access to the bucket;AppErrorCode=9;StartTimeMs=1723017487652;unknown;ResFormat=uncompressed;ServerTimeSec=2.239562515;LogBytes=256;Non-FailFast;EndUserCredsRequested;EffSecLevel=none;ReqFormat=uncompressed;ReqID=2bf5e22602762e49;GlobalID=0;Server=&#x5B;2002:a05:630c:969:b0:6e:903a:5e33]:4001.\n<\/pre><\/div>\n\n\n<p><a href=\"https:\/\/cloud.google.com\/appengine\/docs\/legacy\/standard\/java\/troubleshooting?hl=ja#default-sa-permissions\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30c7\u30d7\u30ed\u30a4\u304c\u5931\u6557\u3059\u308b<\/a><\/p>\n\n\n\n<p>\u4e0a\u8a18\u30da\u30fc\u30b8\u3092\u53c2\u7167\u3059\u308b\u3068\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30b9\u30c8\u30ec\u30fc\u30b8\u7ba1\u7406\u8005\u30ed\u30fc\u30eb\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u306d\u3001\u3068\u306e\u3053\u3068\u306a\u306e\u3067\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Google Cloud Console \u2192 IAM \u3068\u9032\u307f\u3001\u6b21\u306e\u753b\u9762\u3092\u8868\u793a\u3059\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"560\" src=\"https:\/\/shinke1987.net\/wp-content\/uploads\/2024\/08\/1c2f1622c0eaa700427320b57397cee1-1024x560.png\" alt=\"\" class=\"wp-image-1232\" srcset=\"https:\/\/shinke1987.net\/wp-content\/uploads\/2024\/08\/1c2f1622c0eaa700427320b57397cee1-1024x560.png 1024w, https:\/\/shinke1987.net\/wp-content\/uploads\/2024\/08\/1c2f1622c0eaa700427320b57397cee1-300x164.png 300w, https:\/\/shinke1987.net\/wp-content\/uploads\/2024\/08\/1c2f1622c0eaa700427320b57397cee1-768x420.png 768w, https:\/\/shinke1987.net\/wp-content\/uploads\/2024\/08\/1c2f1622c0eaa700427320b57397cee1-1536x840.png 1536w, https:\/\/shinke1987.net\/wp-content\/uploads\/2024\/08\/1c2f1622c0eaa700427320b57397cee1-2048x1120.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u540d\u524d\u304cApp Engine default service account \u306e\u884c\u306e\u53f3\u5074\u306e\u7de8\u96c6\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001<\/p>\n\n\n\n<p>\u4e0b\u8a18\u753b\u50cf\u3092\u53c2\u8003\u306b\u30b9\u30c8\u30ec\u30fc\u30b8\u7ba1\u7406\u8005\u30ed\u30fc\u30eb\u3092\u4ed8\u4e0e\u3059\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"560\" src=\"https:\/\/shinke1987.net\/wp-content\/uploads\/2024\/08\/ab8f5e0379df5a04a07e555264609ca3-1024x560.png\" alt=\"\" class=\"wp-image-1233\" srcset=\"https:\/\/shinke1987.net\/wp-content\/uploads\/2024\/08\/ab8f5e0379df5a04a07e555264609ca3-1024x560.png 1024w, https:\/\/shinke1987.net\/wp-content\/uploads\/2024\/08\/ab8f5e0379df5a04a07e555264609ca3-300x164.png 300w, https:\/\/shinke1987.net\/wp-content\/uploads\/2024\/08\/ab8f5e0379df5a04a07e555264609ca3-768x420.png 768w, https:\/\/shinke1987.net\/wp-content\/uploads\/2024\/08\/ab8f5e0379df5a04a07e555264609ca3-1536x840.png 1536w, https:\/\/shinke1987.net\/wp-content\/uploads\/2024\/08\/ab8f5e0379df5a04a07e555264609ca3-2048x1120.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30b9\u30c8\u30ec\u30fc\u30b8\u7ba1\u7406\u8005\u30ed\u30fc\u30eb\u3092\u4ed8\u4e0e\u5f8c\u3001\u518d\u5ea6\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nServices to deploy:\n\ndescriptor:                  &#x5B;\/Users\/Mac\u306e\u30e6\u30fc\u30b6\u540d\/Development\/GoogleAppEngine\/GAE-Test\/app.yaml]\nsource:                      &#x5B;\/Users\/Mac\u306e\u30e6\u30fc\u30b6\u540d\/Development\/GoogleAppEngine\/GAE-Test]\ntarget project:              &#x5B;gae-test-431804]\ntarget service:              &#x5B;default]\ntarget version:              &#x5B;20240807t172051]\ntarget url:                  &#x5B;https:\/\/gae-test-431804.dt.r.appspot.com]\ntarget service account:      &#x5B;gae-test-431804@appspot.gserviceaccount.com]\n\n\nDo you want to continue (Y\/n)?  Y\n\nBeginning deployment of service &#x5B;default]...\n\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\n\u2560\u2550 Uploading 1 file to Google Cloud Storage                 \u2550\u2563\n\u255a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255d\nFile upload done.\nUpdating service &#x5B;default]...done.                                                                                                 \nSetting traffic split for service &#x5B;default]...done.                                                                                \nDeployed service &#x5B;default] to &#x5B;https:\/\/gae-test-431804.dt.r.appspot.com]\n\nYou can stream logs from the command line by running:\n  $ gcloud app logs tail -s default\n\nTo view your application in the web browser run:\n  $ gcloud app browse\n<\/pre><\/div>\n\n\n<p>\u6b21\u306bWeb\u30d6\u30e9\u30a6\u30b6\u3067\u4e0a\u8a18\u306ehttps\u304b\u3089\u59cb\u307e\u308b\u30a2\u30c9\u30ec\u30b9\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u304b\u3001gcloud app browse\u30b3\u30de\u30f3\u30c9\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u5b9f\u884c\u3059\u308b\u3068\u3001Web\u30d6\u30e9\u30a6\u30b6\u304c\u8d77\u52d5\u3055\u308c\u3066index.php \u306e\u5b9f\u884c\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u30ed\u30b0\u304c\u767a\u751f\u3059\u308b\u305f\u3073\u306b\u30bf\u30fc\u30df\u30ca\u30eb\u3078\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n% gcloud app logs tail -s default\n<\/pre><\/div>\n\n\n<p>\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u904e\u53bb\u306e\u30ed\u30b0\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n% gcloud app logs read -s default\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>\u76ee\u7684 phpinfo()\u95a2\u6570\u306e\u7d50\u679c\u3092Web\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\u3059\u308b\u3002 \u524d\u63d0 OS\uff1amacOS 14.5 sonoma GoogleCloudConsole\u306b\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001GAE\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3(PHP)\u3092\u4f5c\u6210\u6e08\u307f\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[118,80],"tags":[119],"class_list":["post-1231","post","type-post","status-publish","format-standard","hentry","category-gcp","category-php","tag-gae"],"_links":{"self":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/1231","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=1231"}],"version-history":[{"count":1,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/1231\/revisions"}],"predecessor-version":[{"id":1234,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/1231\/revisions\/1234"}],"wp:attachment":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}