A syntax error on the page does not result in an error. Instead, the page cannot be loaded directly]

Source: Internet
Author: User
There is a syntax error on the page, but the page cannot be loaded directly. for example, my code is to write $ array = array () into $ array = ()
If it is modified to the correct one, the page can be opened normally.
I added error_reporting (E_ERROR | E_WARNING | E_PARSE | E_NOTICE) at the beginning. the error message is the same.
How should I configure it? The environment is an LNMP virtual machine environment.


Reply to discussion (solution)

Set display_errors = On in php. ini.

Set display_errors = On in php. ini. here is the connection. Now I changed to display_errors: on. I restarted nginx and still did not display it.

Not the place where the texture is located, but below
Display_errors = On

Not the place where the texture is located, but below
Display_errors = On thanks to the moderator.
I changed to On, and my error report level is:
Error_reporting = E_ALL &~ E_NOTICE
The code for restarting the nginx service is/usr/local/nginx/sbin/nginx-s reload.
Are you sure you want to perform other operations? However, the page cannot be opened.
The service nginx restart Command reports an error.

You can run ps aux | gerp nginx to check whether the process number is killed and then enabled.

Not the place where the texture is located, but below
Display_errors = On
Service php-fpm restsart
Service nginx restart
OK, thank you!

You can run ps aux | gerp nginx to directly kill the process number, and then enable it. I installed the lnmp one-key installation package. maybe someone else can help write the script. I can run the service nginx restart command directly.

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.