容器技术交流

 找回密码
 立即注册
查看: 4842|回复: 0

nginx+php-fpm出错

[复制链接]
发表于 2011-6-27 11:20:01 | 显示全部楼层 |阅读模式
运行discuz论坛可以,但是运行其他的php(我们之前的网站还有帝国备份文件)就会出错,我贴出来nginx的错误日志和同时产生的php-fpm的错误日志,请知道的高手帮忙分析下,谢谢!

第一种情况:
nginx的错误日志:
119.253.208.18 - - [27/Jun/2011:10:39:46 +0800] "GET / HTTP/1.1" 200 10492 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)" -
119.253.208.18 - - [27/Jun/2011:10:39:46 +0800] "GET /\x22.root_path.\x22htmain/Error.php?str=\x22.$str.\x22 HTTP/1.1" 404 36 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)" -
同时产生的 php-fpm日志:
2011/06/27 10:39:46 [error] 5027#0: *9 FastCGI sent in stderr: "PHP Fatal error:  Class 'acc_date' not found in /data0/htdocs/www/class/MyDB.class.php on line 9" while reading upstream, client: 119.253.208.18, server: www.example.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com"

第二种情况:
nginx的错误日志:
119.253.208.18 - - [27/Jun/2011:10:43:40 +0800] "GET /bbs/bf2/ HTTP/1.1" 500 5 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648)" -
同时产生的 php-fpm日志:
2011/06/27 10:43:40 [error] 5027#0: *12 FastCGI sent in stderr: "PHP Parse error:  syntax error, unexpected $end in /data0/htdocs/www/bbs/bf2/class/functions.php on line 1246" while reading response header from upstream, client: 119.253.208.18, server: www.example.com, request: "GET /bbs/bf2/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com"

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-15 01:13 , Processed in 0.033232 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表