如果PHP是apache2模块,PHP会在/var/log/apache2
中存储错误日志(log).
error_log = /var/log/php-scripts.log
According to 100's comment: If you're using cPanel, the master log file you're probably looking for is stored (by default) at
/usr/local/apache/logs/error_log
如果所有其他方法都失败了,您可以使用以下命令判断日志(log)文件的位置
<?php phpinfo(); ?>