找回密码 HTTP500
- 登录后方可回帖
回复#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
回复#3 @ivanilla :
centos 6.7 NGINX
回复#4 @kidvnet :
如果你是通过yum安装的nginx,应该在:/var/log/nginx/error.log
你可以通过nginx -V(大写)查看编译参数来确定error.log的具体位置。
回复#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没关系
回复#6 @kidvnet :
不可能的,PHP的error在nginx错误日志里面会显示的。
回复#7 @ivanilla :
我通过lsof找到了nginx_error.log但是并没有发现和carbon这个论坛程序的错误,我尝试清空日志并重新尝试了几次密码找回操作,nginx_error.log并没有任何新的错误记录
回复#8 @kidvnet :
那就是你找错文件了。
回复#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"
回复 #11 @kidvnet :
PHP版本?
回复 #14 @ivanilla :
那个是PHPMail的库,我照搬过来没改过。
回复#15 @lincanbin :
那么那个错误是怎么回事,LZ自己改了?
回复#14 @ivanilla :
我只是为了域名短一些所以用了de域名 code=co.de嘛
回复#17 @kidvnet :
貌似有.code后缀的域名吧。