Php Nginx不断抛出502坏网关

Php Nginx不断抛出502坏网关,php,laravel,nginx,laravel-5,ubuntu-14.04,Php,Laravel,Nginx,Laravel 5,Ubuntu 14.04,Nginx:Nginx/1.11.2 即使在我更新了我的nginx配置之后,我仍然得到了502个坏网关 Nginx配置 /var/log/nginx/access.log 2016/07/30 14:24:16 [notice] 18776#18776: signal process started 2016/07/30 16:46:39 [notice] 20193#20193: signal process started 2016/07/31 06:25:02 [emerg] 2019

Nginx:Nginx/1.11.2

即使在我更新了我的nginx配置之后,我仍然得到了502个坏网关


Nginx配置
/var/log/nginx/access.log

2016/07/30 14:24:16 [notice] 18776#18776: signal process started
2016/07/30 16:46:39 [notice] 20193#20193: signal process started
2016/07/31 06:25:02 [emerg] 20196#20196: open() "/var/log/nginx/access.log" failed (13: Permission denied)
2016/07/31 06:25:02 [emerg] 20196#20196: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2016/07/31 06:25:02 [emerg] 20196#20196: open() "/var/log/nginx/default-error.log" failed (13: Permission denied)
64.16.214.100 - - [30/Jul/2016:20:04:30 -0400] "GET /myadmin/scripts/setup.php HTTP/1.0" 404 169 "-" "-"
192.227.209.147 - - [30/Jul/2016:20:34:31 -0400] "GET /w00tw00t.at.ISC.SANS.DFind:) HTTP/1.1" 400 173 "-" "-"
141.212.122.160 - - [31/Jul/2016:03:59:32 -0400] "GET /x HTTP/1.1" 400 173 "-" "Telesphoreo"
64.16.214.100 - - [31/Jul/2016:14:39:41 -0400] "GET /pma/scripts/setup.php HTTP/1.0" 404 169 "-" "-"
213.128.81.66 - - [01/Aug/2016:12:13:26 -0400] "GET / HTTP/1.0" 404 169 "-" "masscan/1.0 (https://github.com/robertdavidgraham/masscan)"
2016/08/02 11:52:48 [error] 2894#2894: *7 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216", referrer: "http://104.236.15.216/sign-in"
2016/08/02 11:54:08 [error] 2894#2894: *7 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216", referrer: "http://104.236.15.216/sign-in"
2016/08/02 12:02:28 [error] 2893#2893: *17 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216", referrer: "http://104.236.15.216/sign-in"
2016/08/02 12:03:28 [error] 2893#2893: *20 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216", referrer: "http://104.236.15.216/sign-in"
2016/08/02 12:25:28 [error] 2893#2893: *28 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216"
/var/log/nginx/default error.log

2016/07/30 14:24:16 [notice] 18776#18776: signal process started
2016/07/30 16:46:39 [notice] 20193#20193: signal process started
2016/07/31 06:25:02 [emerg] 20196#20196: open() "/var/log/nginx/access.log" failed (13: Permission denied)
2016/07/31 06:25:02 [emerg] 20196#20196: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2016/07/31 06:25:02 [emerg] 20196#20196: open() "/var/log/nginx/default-error.log" failed (13: Permission denied)
64.16.214.100 - - [30/Jul/2016:20:04:30 -0400] "GET /myadmin/scripts/setup.php HTTP/1.0" 404 169 "-" "-"
192.227.209.147 - - [30/Jul/2016:20:34:31 -0400] "GET /w00tw00t.at.ISC.SANS.DFind:) HTTP/1.1" 400 173 "-" "-"
141.212.122.160 - - [31/Jul/2016:03:59:32 -0400] "GET /x HTTP/1.1" 400 173 "-" "Telesphoreo"
64.16.214.100 - - [31/Jul/2016:14:39:41 -0400] "GET /pma/scripts/setup.php HTTP/1.0" 404 169 "-" "-"
213.128.81.66 - - [01/Aug/2016:12:13:26 -0400] "GET / HTTP/1.0" 404 169 "-" "masscan/1.0 (https://github.com/robertdavidgraham/masscan)"
2016/08/02 11:52:48 [error] 2894#2894: *7 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216", referrer: "http://104.236.15.216/sign-in"
2016/08/02 11:54:08 [error] 2894#2894: *7 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216", referrer: "http://104.236.15.216/sign-in"
2016/08/02 12:02:28 [error] 2893#2893: *17 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216", referrer: "http://104.236.15.216/sign-in"
2016/08/02 12:03:28 [error] 2893#2893: *20 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216", referrer: "http://104.236.15.216/sign-in"
2016/08/02 12:25:28 [error] 2893#2893: *28 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 72.22.171.98, server: default, request: "GET /dashboard HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "104.236.15.216"

我还错过了什么吗

我需要为我的
php.ini
设置添加任何内容吗


任何提示/建议对我都很重要

/var/log/nginx/error.log
有其他信息吗?我更新了我的帖子。刷新后我现在得到了一些东西。您是否已将php7 fpm作为服务安装<代码>服务php7 fpm状态(或检查
/etc/init.d/
,可能被称为其他名称)?该sock文件是否存在(
ls/var/run/php/php7.0-fpm.sock
)?我想我没有将
php7-fpm
作为服务安装。我应该安装吗?是的。大致概括了这些步骤。您需要在顶部安装PPA,然后安装
php7 fpm
服务。
/var/log/nginx/error.log
有其他信息吗?我更新了我的帖子。刷新后我现在得到了一些东西。您是否已将php7 fpm作为服务安装<代码>服务php7 fpm状态(或检查
/etc/init.d/
,可能被称为其他名称)?该sock文件是否存在(
ls/var/run/php/php7.0-fpm.sock
)?我想我没有将
php7-fpm
作为服务安装。我应该安装吗?是的。大致概括了这些步骤。您需要在顶部安装PPA,然后安装
php7 fpm
服务。