Freshは開発のためにWindows上にWordPressをインストールし、 `ERR

TOO

MANY__REDIRECTS`エラーメッセージを表示しますか?

テスト済みのURL:


http://localhost/index.php/wp-admin/install.php

テスト済み:

  1. PHP 7.1.10

  2. ワードプレス4.8.3

  3. Nginx 1.12.1

  4. MySQL 5.7.17

  5. ウィンドウズ10

あなたのnginx \ conf \ nginx.conf

    upstream php {
        server 127.0.0.1:9999;
    }

    server {
        listen       80;
        server__name  localhost;

        root www/wordpress;

        location/{
            try__files $uri $uri//index.php?$args;
        }

        location ~ \.php$ {
            include fastcgi.conf;
            fastcgi__intercept__errors on;
            fastcgi__pass   php;
        }

        location ~**  \.(js|css|png|jpg|jpeg|gif|ico)$ {
                expires max;
                log__not__found off;
        }

    }

解決策

デフォルトのPHPページが見つからないため、「リダイレクトが多すぎます」というエラーメッセージが表示され、これを修正し、 `index index.php;`を追加しました。

あなたのnginx \ conf \ nginx.conf

    upstream php {
        server 127.0.0.1:9999;
    }

    server {
        listen       80;
        server__name  localhost;

        root www/wordpress;

        # fixed wordpress install ERR__TOO__MANY__REDIRECTS
        index index.php;

        location/{
            try__files $uri $uri//index.php?$args;
        }

        location ~ \.php$ {
            include fastcgi.conf;
            fastcgi__intercept__errors on;
            fastcgi__pass   php;
        }

        location ~**  \.(js|css|png|jpg|jpeg|gif|ico)$ {
                expires max;
                log__not__found off;
        }

    }