Currently browsing tag

apache

顯示 php 錯誤訊息在網頁上

基於安全考量, 強力建議別打開. 但是礙於每次都得去讀 logs 很麻煩. 所以有時後會想暫時打開. 編輯 php.ini 檔案. 找出 display_errors 把設定值改成 On ; display_errors = Off display_errors = On 然後記得重新啟動 web …

.htpasswd notes

[root@SERVER ~]$ htpasswd Usage: htpasswd [-cmdpsD] passwordfile username htpasswd -b[cmdpsD] passwordfile username password htpasswd -n[mdps] username htpasswd -nb[mdps] username password -c Create …

Enabling .htaccess in OS X

from : http://www.clagnut.com/blog/350/ Out of the box, the Apache Web server that comes with OS X does not take any notice of …