Skip to content

Instantly share code, notes, and snippets.

@BiosSun
Created October 31, 2013 03:50
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BiosSun/7244141 to your computer and use it in GitHub Desktop.
Save BiosSun/7244141 to your computer and use it in GitHub Desktop.
1. 修改 php-fpm.conf 文件,添加(或修改)如下配置:
[global]
error_log = log/error_log
[www]
catch_workers_output = yes
2. 修改 php.ini 文件,添加(或修改)如下配置:
log_errors = On
error_log = "/usr/local/lnmp/php/var/log/error_log"
error_reporting=E_ALL&~E_NOTICE
3. 重启 php-fpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment