windows2012 php7,windows server 2012 下 PHP7 & MYSQL5.7.1 的配置問題

引用 1 樓 Runnerchin 的回復:

500錯誤一般都是程序出錯,如果在別的地方這個項目可以跑起來,可以考慮是php版本的問題

另外,碰到500的時候,測試階段和開發階段打開php的錯誤顯示,這樣能在頁面里直接看到錯誤的問題詳情,而不是一個籠統的500頁面;在任何階段,也可以通過操作系統的日志去查看錯誤詳情(打開和關閉php的錯誤提示都不影響),windows在日志查看器的程序標簽下查看,linux一般在web服務器的日志里查看

; Common Values:

;   E_ALL (Show all errors, warnings and notices including coding standards.)

;   E_ALL & ~E_NOTICE  (Show all errors, except for notices)

;   E_ALL & ~E_NOTICE & ~E_STRICT  (Show all errors, except for notices and coding standards warnings.)

;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)

; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED

; Development Value: E_ALL

; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT

; http://php.net/error-reporting

error_reporting = E_ALL

; This directive controls whether or not and where PHP will output errors,

; notices and warnings too. Error output is very useful during development, but

; it could be very dangerous in production environments. Depending on the code

; which is triggering the error, sensitive information could potentially leak

; out of your application such as database usernames and passwords or worse.

; For production environments, we recommend logging errors rather than

; sending them to STDOUT.

; Possible Values:

;   Off = Do not display any errors

;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)

;   On or stdout = Display errors to STDOUT

; Default Value: On

; Development Value: On

; Production Value: Off

; http://php.net/display-errors

display_errors = On

; The display of errors which occur during PHP's startup sequence are handled

; separately from display_errors. PHP's default behavior is to suppress those

; errors from clients. Turning the display of startup errors on can be useful in

; debugging configuration problems. We strongly recommend you

; set this to 'off' for production servers.

; Default Value: Off

; Development Value: On

; Production Value: Off

; http://php.net/display-startup-errors

display_startup_errors = On

; Besides displaying errors, PHP can also log errors to locations such as a

; server-specific log, STDERR, or a location specified by the error_log

; directive found below. While errors should not be displayed on productions

; servers they should still be monitored and logging is a great way to do that.

; Default Value: Off

; Development Value: On

; Production Value: On

; http://php.net/log-errors

log_errors = On

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值