This morning, boss reflects, there is a website cannot open.
Open, prompt for 500 error.
Website is published with Nginx, there are more than n sites.
Why does M website index.php not open, other file can open. WWW Web site but access to normal, the other is normal.
First look at the PHP-FPM log, no errors found or connection pooling busy problems
/usr/local/php/var/log/php-fpm.log
Look at Nginx access log, refresh too fast, almost all 200 states.
/usr/local/nginx/logs/access.log
Boss has been urging what problem, how has not been done? Heart 10,000 grass mud horse in Pentium, how to do?
Then Google search Nginx 500 error causes, found a few articles.
It's all about adjusting the number of open files in the system, the number of nginx processes.
However, my system files and Nginx number has been set to 65535, and it is not possible to have such a large number of access concurrency.
Then manually execute the PHP file
PHP index.php
I've found a problem, index.php has a mistake.
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
Then look at the SVN log and find someone changed index.php 20:50 last night. There may be no test access after the online.
Later let him change, the website can be visited.
Hey, you can't panic when you meet. Be calm!
This article is from the "Falling Star" blog, make sure to keep this source http://xiao987334176.blog.51cto.com/2202382/1637993
Nginx 500 error occurred