Home > Backend Development > PHP Problem > How to enable php error message in lnmp

How to enable php error message in lnmp

藏色散人
Release: 2023-03-05 16:22:02
Original
2316 people have browsed it

lnmp method to enable php error message: 1. Open the "php.ini" file and modify the content "display_errors = On"; 2. Open the "php-fpm.conf" file and add the content "php_flag" [display_errors] = on".

How to enable php error message in lnmp

Recommendation: "PHP Video Tutorial"

lnmp method to enable php error message:

Introduction: The lnmp I use is the downloaded lnmp one-click installation package, so the directory of the configuration file may be somewhat different from the one I installed

Open error message

1. Turn on the error message of php

File location:/usr/local/php/etc/php.ini

  display_errors = On
  error_reporting = E_ALL
Copy after login

2. Since the php service is handed over to php-fpm management, so To output error information, you also need to configure the configuration file of php-fpm

File location: /usr/local/php/etc/php-fpm.conf

; If it does not exist, add it yourself

  php_flag[display_errors] = on
Copy after login

The above is the detailed content of How to enable php error message in lnmp. 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