Resolution: 500 error occurred accessing PHP page LNMP schema

Source: Internet
Author: User
Tags php script

By default, if the PHP script being accessed contains syntax errors, the server returns an empty "OK" page

The Fastcgi.error_header option in PHP.ini allows an HTTP error code to be generated in this case

So that the Web server can properly intercept and process this error code, similar to calling header () directly in PHP code to return a 500 status code, such as

Header ("http/1.1 Internal Server Error");

Reconfigure: Set display_errors = on Turn On error display in php.ini, all right

In addition, the php.ini option set in php-fpm.conf takes precedence over the options set in php.ini, such as

Set display_errors = on in php.ini

Set Php_flag[display_errors] = off in php-fpm.conf

So the result is off.

Resolution: 500 error occurred accessing PHP page LNMP schema

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.