找回密码 HTTP500
PHP开启了error信息
依然显示HTTP500 没有具体的信息
请问如何debug?
回复#1 @ivanilla :
请问错误日志在哪里查看?
我在 library/logs 找到一个 似乎没有什么关联
Time : 20:15:38SQLSTATE[HY000]: General error: 2006 MySQL server has gone awayRaw SQL : SELECT NewMessage FROM carbon_users WHERE ID = :UserID Time : 20:04:20SQLSTATE[70100]: <<Unknown error>>: 1317 Query execution was interruptedRaw SQL : SELECT NewMessage FROM carbon_users WHERE ID = :UserID
回复#5 @ivanilla :
看了nginx的日志跟PHP错误无关
2015/11/27 16:18:13 [notice] 23526#0: signal process started 2015/11/27 16:20:20 [notice] 23570#0: signal process started 2015/11/27 17:24:08 [notice] 24138#0: signal process started 2015/12/10 15:50:22 [notice] 18555#0: signal process started 2015/12/10 16:06:03 [notice] 19250#0: signal process started 2015/12/10 16:30:23 [notice] 19771#0: signal process started 2015/12/30 15:46:33 [notice] 2201#0: signal process started 2015/12/30 16:27:19 [notice] 2305#0: signal process started 2015/12/30 16:30:25 [notice] 2324#0: signal process started 2016/01/18 16:41:35 [notice] 31850#0: signal process started 2016/01/18 16:45:36 [notice] 31866#0: signal process started 2016/02/07 13:05:10 [notice] 6300#0: signal process started 2016/02/07 13:06:00 [notice] 6316#0: signal process started 2016/07/08 14:28:18 [notice] 28986#0: signal process started 2016/07/08 14:57:36 [notice] 29743#0: signal process started 2016/07/08 20:04:19 [notice] 3037#0: signal process started 2016/07/08 20:15:36 [notice] 3896#0: signal process started
也跟HTTP500没关系
回复#9 @ivanilla :
我在nginx.conf 找到了错误文件目录参数, 我把报错的level改成了error 终于有输出了
2016/07/08 22:34:57 [crit] 7264#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 141.101.85.191, server: www.l4co.de, request: "POST /forgot? HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.l4co.de", referrer: "http://www.l4co.de/forgot"2016/07/08 22:35:10 [error] 7264#0: *3 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected '=' in /home/wwwroot/other/l4co.de/library/PHPMailer.class.php on line 1310" while reading response header from upstream, client: 141.101.85.191, server: www.l4co.de, request: "POST /forgot? HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.l4co.de", referrer: "http://www.l4co.de/forgot"
回复#9 @ivanilla :
2016/07/08 22:34:57 [crit] 7264#0: *1 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: 141.101.85.191, server: www.l4co.de, request: "POST /forgot? HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.l4co.de", referrer: "http://www.l4co.de/forgot"
2016/07/08 22:35:10 [error] 7264#0: *3 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected '=' in /home/wwwroot/other/l4co.de/library/PHPMailer.class.php on line 1310" while reading response header from upstream, client: 141.101.85.191, server: www.l4co.de, request: "POST /forgot? HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "www.l4co.de", referrer: "http://www.l4co.de/forgot"
登录后方可回帖
查看错误日志。