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

打开php错误提示 nginx+php

WBOY
Release: 2016-06-23 14:30:02
Original
771 people have browsed it

首先要编辑php配置文件:

vi /etc/php.inierror_reporting = E_ERRORdisplay_errors = On 
Copy after login

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

vi php-fpm.confphp_flag[display_errors] = on
Copy after login

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

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