Skip to content

Instantly share code, notes, and snippets.

@tqyq
Created October 12, 2015 03:56
Show Gist options
  • Save tqyq/a3378da62327ba68754e to your computer and use it in GitHub Desktop.
Save tqyq/a3378da62327ba68754e to your computer and use it in GitHub Desktop.
首先打开php的错误信息提示功能,在其已ubuntu为测试环境
vim /etc/php5/fpm/php.ini
打开错误提示
display_errors = On
因为用到的四fpm与nginx配合,所以还需要修改php-fpm.conf文件
vim /etc/php5/fpm/php-fpm.conf
再最后添加
php_flag[display_errors] = on
有人问了,这个php-fpm里面没有这个参数啊,是的里面你是找不到的
需要在另外一个路径下找到次配置参数,感兴趣的可以参考这里php-fpm configuration
vim /etc/php5/fpm/pool.d/www.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment