How to turn on the error message in php in linux
This article is about how php turns on error messages in linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Linux php open error prompt method: 1, modify php.ini content to "display_errorsdisplay_errors = On"; 2, modify php-fpm.conf content to "php_ display [display _ errors] = on".
This article operating environment: centos7 system, PHP7.3 version, Dell G3 computer
Specific error message display when nginx is enabled for PHP in Linux centos7 environment
1. Modify php.ini
# find phpinifind /-name php.ini# and modify display_errorsdisplay_errors = On
2. Modify php-fpm.conf
# find php-fpm.conf file find /-name php-fpm.conf# add parameter (anywhere) php_ errors [display _ errors] = on
3. Restart php. Different php versions have different commands.
Systemctl restart php73-php-fpm
Thank you for reading! This is the end of this article on "how to open error tips for php in linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!