开发者

LAMP display php errors

开发者 https://www.devze.com 2023-01-19 17:49 出处:网络
I\'ve installed developer\'s LAMP server and made changes on php.ini di开发者_开发知识库splay_errors On

I've installed developer's LAMP server and made changes on php.ini

di开发者_开发知识库splay_errors On

display_startup_errors On

but it doesn't display any errors or even a little warning, what's the problem, what's wrong?


Keep in mind that most systems have two php.ini files, one for the webserver and one for the command line. Do a phpinfo() to see which one you need to edit.


Did you restart apache?


Also set error_reporting to E_ALL


change the following variables in your php.ini

; display_errors
; Default Value: On
; Development Value: On
; Production Value: Off

; display_startup_errors
; Default Value: On
; Development Value: On
; Production Value: Off

; error_reporting
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT 
; Production Value: E_ALL & ~E_DEPRECATED

; html_errors 
; Default Value: On 
; Development Value: On 
; Production value: Off

; log_errors
; Default Value: On 
; Development Value: On 
; Production Value: On
0

精彩评论

暂无评论...
验证码 换一张
取 消