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

How to enable php error message in lnmp

藏色散人
藏色散人Original
2020-09-02 09:52:142093browse

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

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

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!

Statement:
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