在Debian系統中,PHP的錯誤日志通常位于 /var/log/php_errors.log
或 /var/log/apache2/error.log
,具體路徑可能因安裝的PHP版本和Web服務器(如Apache或Nginx)的不同而有所差異。
要查看PHP錯誤日志,您可以使用以下命令:
tail -f /var/log/php_errors.log
或者,如果您知道具體的錯誤日志文件路徑,也可以直接使用:
tail -f /path/to/your/error.log
。
請注意,如果您的系統使用Nginx作為Web服務器,錯誤日志可能位于 /var/log/nginx/error.log
。