
我無法在 PHP 模組 (5.3.2) 的 Snow Leopard 建置中顯示 PHP 語法錯誤。
所有其他錯誤都會出現。我已經查過了phpinfo()
,我確實有display_errors = On
和error_reporting = E_ALL | E_STRICT
。
真的很奇怪。 :(
答案1
貼上完整的 /etc/php.ini,我們也許能夠診斷問題,但在此之前您將能夠查看 Apache 日誌檔案中的錯誤。不確定它們在 Macosx 上的位置,但以下是一些典型位置:
Plesk 伺服器上的 /var/www/vhosts/domain.com/statistics/logs/error_log
/var/log/httpd/error_log
/home/yourname/logs /error_log
或從終端運行:
httpd -S
這將顯示該域的配置文件,然後grep -i "ErrorLog" that_file