Where can I find error log files for PHP?(在哪里可以找到 PHP 的错误日志文件?)
问题描述
在哪里可以找到错误日志文件?
我需要检查它们以解决安装 suPHP 后显示的内部服务器错误.
您可以使用 lsof 查找系统上打开的日志文件.lsof 只是为您提供所有打开文件的列表.
将 grep 用于日志"...再次为php"使用 grep(如果文件名包含字符串log"和php",就像在php_error_log"中一样,并且您是 root 用户,您将在不知道配置的情况下找到这些文件).
<块引用>
另请参阅有关查找打开的日志文件的文章:查找 Linux 系统上打开的日志文件
Where can I find error log files?
I need to check them for solving an internal server error shown after installing suPHP.
You can use lsof to find open logfiles on your system. lsof just gives you a list of all open files.
Use grep for "log" ... use grep again for "php" (if the filename contains the strings "log" and "php" like in "php_error_log" and you are the root user you will find the files without knowing the configuration).
Also see this article on finding open logfiles: Find open logfiles on a Linux system
这篇关于在哪里可以找到 PHP 的错误日志文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!