簡體   English   中英

嘗試在 google cloud flex appengine 中安裝 wordpress; 在“gcloud app deploy”中出錯

[英]Trying to install wordpress in google cloud flex appengine; getting error in "gcloud app deploy"

我正在按照https://cloud.google.com/php/tutorials/wordpress-app-engine-flexible中的步驟操作。 我在 ubuntu 22。

“gcloud app deploy --promote --stop-previous-version app.yaml cron.yaml”步驟失敗並出現錯誤:

Step #2: Using PHP version: 7.3
Step #2: Install PHP extensions...
Step #2: Running composer...
Step #2: Loading composer repositories with package information
Step #2: Installing dependencies from lock file
Step #2: Your requirements could not be resolved to an installable set of packages.
Step #2: 
Step #2:   Problem 1
Step #2:     - Installation request for brick/math 0.10.2 -> satisfiable by brick/math[0.10.2].
Step #2:     - brick/math 0.10.2 requires php ^7.4 || ^8.0 -> your PHP version (7.3.19) does not satisfy that requirement.
Step #2:   Problem 2
Step #2:     - Installation request for psr/cache 3.0.0 -> satisfiable by psr/cache[3.0.0].
Step #2:     - psr/cache 3.0.0 requires php >=8.0.0 -> your PHP version (7.3.19) does not satisfy that requirement.
Step #2:   Problem 3
Step #2:     - Installation request for psr/log 3.0.0 -> satisfiable by psr/log[3.0.0].
Step #2:     - psr/log 3.0.0 requires php >=8.0.0 -> your PHP version (7.3.19) does not satisfy that requirement.
Step #2:   Problem 4
Step #2:     - Installation request for ramsey/uuid 4.5.1 -> satisfiable by ramsey/uuid[4.5.1].
Step #2:     - ramsey/uuid 4.5.1 requires php ^8.0 -> your PHP version (7.3.19) does not satisfy that requirement.
Step #2:   Problem 5
Step #2:     - Installation request for symfony/deprecation-contracts v3.1.1 -> satisfiable by symfony/deprecation-contracts[v3.1.1].
Step #2:     - symfony/deprecation-contracts v3.1.1 requires php >=8.1 -> your PHP version (7.3.19) does not satisfy that requirement.
Step #2:   Problem 6
Step #2:     - psr/cache 3.0.0 requires php >=8.0.0 -> your PHP version (7.3.19) does not satisfy that requirement.
Step #2:     - google/grpc-gcp v0.2.0 requires psr/cache ^1.0.1||^2.0.0||^3.0.0 -> satisfiable by psr/cache[3.0.0].
Step #2:     - Installation request for google/grpc-gcp v0.2.0 -> satisfiable by google/grpc-gcp[v0.2.0].
Step #2: 
Step #2: error building image: error building stage: waiting for process to exit: exit status 2
Finished Step #2
ERROR

不知道如何 go 過去這個錯誤。 令人窒息的是,它說“使用 PHP 版本:7.3”,但我只安裝了 8.1 版:

ls -l /usr/bin/php*
lrwxrwxrwx 1 root root      21 Sep 27 12:58 /usr/bin/php -> /etc/alternatives/php
-rwxr-xr-x 1 root root 5531064 Aug  8 00:28 /usr/bin/php8.1
lrwxrwxrwx 1 root root       6 Jan 27  2022 /usr/bin/php.default -> php8.1

在哪里可以找到 7.3 版?

注意:運行命令“composer install”通過:無需安裝、更新或刪除。

這是我的 composer.json 文件:

{
    "require": {
        "google/cloud": "~0.21",
        "php": "^7.3|^8.0"
    },
    "require-dev": {
        "wp-cli/wp-cli": "~2.0"
    }
}

我編輯了上面的“php”行,但沒有成功。

請幫忙。

目前,它不支持 8.1 版,因此默認為 7.3

刪除 php8 並安裝 php7.3 並重做此處提到的所有步驟: https://cloud.google.com/php/tutorials/wordpress-app-engine-flexible

運行 php -v 以確保您沒有運行 php8 然后運行輔助腳本:php wordpress.php setup

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM