Home  >  Article  >  Backend Development  >  打开php错误提示 nginx+php

打开php错误提示 nginx+php

WBOY
WBOYOriginal
2016-06-23 14:30:02737browse

首先要编辑php配置文件:

vi /etc/php.inierror_reporting = E_ERRORdisplay_errors = On 

因为我开启了php-fpm。所以,还要编辑 php-fpm.conf文件,把php_flag[display_errors]设为on:

vi php-fpm.confphp_flag[display_errors] = on

这样在开发的时候就可以在浏览器中显示php出现的错误了,非常方便。

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