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.