500 nginx 图片_nginx出现500错误

今天早上,boss反映,有一个网站打不开了。

打开,提示500错误。

网站是用nginx发布的,里面有N多网站。

为什么偏偏m网站index.php不能打开,其他文件可以打开。www网站却访问正常了,其他的也正常。

先看了一下php-fpm日志,没有发现错误或者连接池busy的问题

/usr/local/php/var/log/php-fpm.log

再看nginx访问日志,刷新太快了,差不多都是200状态。

/usr/local/nginx/logs/access.log

boss一直在催什么问题,怎么还没有搞定?心里一万个草泥马在奔腾,怎么办?

然后google搜索nginx 500错误产生的原因,找了几篇文章。

都是说调整系统打开文件数,nginx进程数。

但是我系统文件数和nginx数早就设置为65535了,而且也不可能有这么大访问并发的。

后来手动执行php文件

php index.php

发现问题了,index.php有错误

PHP Strict Standards:  Redefining already defined constructor for class wwwUser in /help_m/lib/www/rt/class.wwwUser.php on line 16

PHP Strict Standards:  Only variables should be assigned by reference in /help_m/lib/www/rt/class.wwwUser.php on line 17

PHP Strict Standards:  Only variables should be assigned by reference in /help_m/web/www/ac/class.act.index.php on line 15

PHP Strict Standards:  Redefining already defined constructor for class weixin in /help_m/lib/weixin/wei/class.weixin.php on line 14

PHP Strict Standards:  Only variables should be assigned by reference in /help_m/web/www/ac/class.act.index.php on line 18

PHP Fatal error:  Uncaught exception 'RedisException' with message 'read error on /help_m/lib/core/cache.php:43

然后查看svn日志,发现昨天晚上20:50有人改过index.php。可能上线后,没有测试访问。

后来让他改了下,网站就可以访问了。

哎,遇上不能慌啊。要淡定啊!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值