我只是设置PHP和Apache,并希望find错误发生的地方。 PHP的错误日志的默认path是什么?
这些stream行的操作系统中有这些位置:
RHEL / Red Hat / CentOS / Fedora Linux Apache错误文件位置 – / var / log / httpd / error_log
Debian / Ubuntu Linux Apache错误日志文件位置 – /var/log/apache2/error.log
FreeBSD的Apache错误日志文件位置 – /var/log/httpd-error.log
关于Apache日志文件的详细答案在这里: http : //www.cyberciti.biz/faq/apache-logs/
尝试这个:
touch /var/log/php_errors.log chown www-data:/var/log/php_errors.log chmod + rw /var/log/php_errors.log
现在,您可以通过这种方式查看PHP错误
tail /var/log/php_errors.log