How to enable error prompts in linux php

藏色散人
Release: 2023-03-12 16:16:01
Original
1899 people have browsed it

How to enable error prompts in linux php: 1. Modify the content of php.ini to "display_errorsdisplay_errors = On"; 2. Modify the content of php-fpm.conf to "php_flag[display_errors]=on".

How to enable error prompts in linux php

The operating environment of this article: centos7 system, PHP7.3 version, Dell G3 computer

nginx opens PHP specific error message display in Linux centos7 environment

1. Modify php.ini

#查找phpinifind / -name php.ini#修改display_errorsdisplay_errors = On
Copy after login

How to enable error prompts in linux php
2. Modify php-fpm.conf

#查找php-fpm.conf文件find / -name php-fpm.conf#增加参数(随便哪里都行)php_flag[display_errors] = on
Copy after login

How to enable error prompts in linux php
3. Just restart php. Different php versions have different commands

systemctl restart php73-php-fpm
Copy after login

How to enable error prompts in linux php

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to enable error prompts in linux php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template