顯示 php 錯誤訊息在網頁上

基於安全考量, 強力建議別打開. 但是礙於每次都得去讀 logs 很麻煩. 所以有時後會想暫時打開.

編輯 php.ini 檔案. 找出 display_errors 把設定值改成 On
; display_errors = Off
display_errors = On

然後記得重新啟動 web server
# service httpd restart

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.