Website periodic Error 500

Source: Internet
Author: User
Tags website server
The website server is developed in nginx and php. The website has encountered a 500 error every weekend, and the nginx error log is not recorded. Generally, it appears when the POST form is submitted, and access to other pages is normal. Note: There is no difference between weekend visits and normal visits, and the probability of 500 errors is relatively small at ordinary times... the website server is developed in nginx and php. The website has encountered a 500 error every weekend, and the nginx error log is not recorded. Generally, it appears when the POST form is submitted, and access to other pages is normal.
Note: There is no difference between weekend visits and normal visits, and the probability of 500 errors is relatively low. It is mainly concentrated on weekends. Now, the error 500 is reported over the weekend, but it does not last forever. What is the reason?

Reply content:

The website server is developed in nginx and php. The website has encountered a 500 error every weekend, and the nginx error log is not recorded. Generally, it appears when the POST form is submitted, and access to other pages is normal.
Note: There is no difference between weekend visits and normal visits, and the probability of 500 errors is relatively low. It is mainly concentrated on weekends. Now, the error 500 is reported over the weekend, but it does not last forever. What is the reason?

Adjusting the nginx error log level can help analysis.

Error_log levels are divided into debug, info, notice, warn, error, and crit. The default levels are crit. The format defined after the log name is as follows:
Error_log/your/path/error. log crit;
Crit records the least, while debug records the most.

If the error_log level is the default crit and the Error 500 is displayed, the log does not record meaningful information. It is recommended to adjust the error_log level, for example, error, and more error log records.

If the traffic volume is small, you need to consider the code problem. We recommend that you record the log in the post location, such as the operation SQL statement executed by the post data, and troubleshoot the problem based on the logs.

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.