2017-12-07 5 views
0

Ich versuche, PHP7.2 und Nginx auf meinem Entwicklungscomputer zu installieren. Meine Entwicklungsmaschine läuft auf Bash Ubuntu 16.04 unter Windows.FastCGI PHP7.2 immer Timeouts Nginx Bash ubuntu unter Windows

Ich hatte ein funktionierendes Nginx und PHP7.0 installiert, bevor ich frühere Versionen von PHP löschte und PHP7.2 installierte.

Error.log Ausgang:

2017/12/07 03:30:33 [error] 32655#32655: *1 upstream timed out (110: Connection timed out) while reading upstream, client: 127.0.0.1, server: 127.0.0.1, request: "GET /helloworld.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "127.0.0.1" 

php7.2-fpm.log:

[07-Dec-2017 03:29:29] NOTICE: Finishing ... 
[07-Dec-2017 03:29:29] NOTICE: exiting, bye-bye! 
[07-Dec-2017 03:29:30] NOTICE: fpm is running, pid 32683 
[07-Dec-2017 03:29:30] NOTICE: ready to handle connections 
[07-Dec-2017 03:29:30] NOTICE: systemd monitor interval set to 10000ms 

sites-available/default:

location ~ \.php$ { 
      include snippets/fastcgi-php.conf; 
      fastcgi_pass unix:/run/php/php7.2-fpm.sock; 
    } 

    location ~ /\.ht { 
      deny all; 
    } 

Die Seite Ich versuche, laden:

<?php echo 'Hello World'; ?> 

Ich habe versucht, alle PHP7 * und Nginx vollständig zu entfernen und mit frischen Konfigurationsdateien neu zu installieren, aber das gleiche Ergebnis.

Wenn ich eine Seite mit phpinfo() erstellen, werden zwar alle Informationen angezeigt, aber es wird geladen.

Ich weiß nicht, wo ich anfangen soll, da keine korrekten Fehler angezeigt werden.

Antwort

0

gelöst, Problem war, dass WSL nicht Unix unterstützt: Sockel und verlangte von mir Kommentar aus:

/etc/nginx/sites-available/default.conf

fastcgi_pass unix:/home/{user}/.valet/valet.sock; 

und

fastcgi_pass 127.0.0.1:9000; 

hinzufügen und das gleiche tun auf

/etc/php/7.2/fpm/pool.d/www.conf

Verwandte Themen