Nginx 500 error occurred

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.