There is a syntax error on the page, but the direct page can not load "have diagram"

Source: Internet
Author: User
My code, for example, is to write $array=array () $array= ()
Change to correct to open the page normally.
I added error_reporting in front of me (E_error | e_warning | E_parse | E_notice); The same is true for error alerts.
How should I configure it? The environment is a LNMP virtual machine environment.


Reply to discussion (solution)

Set Display_errors=on in PHP.ini

PHP.ini set in Display_errors=on I am here: in the connection. I changed to Display_errors:on now, restarted the Nginx, still did not show

It's not the map, it's underneath.
Display_errors=on

It's not the map, it's underneath.
Display_errors=on Thank you moderator, indeed is below
I modified it for on, and then my error report level was:
error_reporting = E_all & ~e_notice
My code to restart the Nginx service is/usr/local/nginx/sbin/nginx-s reload
Do you still need to do something else? However, the page cannot be opened.
The service nginx restart command will error.

This you can PS AUX | Gerp Nginx See the process number directly kill, and then open?

It's not the map, it's underneath.
Display_errors=on
Service PHP-FPM Restsart
Service Nginx Restart
OK, thanks two bit!

This you can PS AUX | Gerp Nginx See the process number directly kill off, and then open it I installed is LNMP a key installation package, may be helped to write a script, I direct service nginx restart can line

  • 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.