我在哪里可以找到错误日志? [英] Where can I find error logs?

查看:238
本文介绍了我在哪里可以找到错误日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我与PHP脚本出场,我没有磁盘空间。磁盘空间是130MB时之前,现在是200 MB - 在托管商的最大允许的文件大小。我的网站有130MB如此看来日志文件采取其他可用的磁盘空间。我的PHP脚本中使用下列功能:

Since I played with a php script, I have no disk space. Before the disk space was at 130MB, now it is at 200 MB - the maximal allowed file size at the webhoster. My Website has 130MB so it seems the log files take the other available disk space. My PHP script used the following functions:

imagepng结果
imagettftext

imagepng
imagettftext

我用imagedestroy。我在脚本中的错误是

I have used imagedestroy. The errors I had in the script were


  • 未定义,抵消

  • 使用未定义的常量的

在该目录中我能找到导致这个问题的日志文件?

In which directory I can find the log files which causes this problem?

解决方案:

在/ var /日志/ httpd的所谓的error_log

/var/log/httpd called error_log

我删除了我的错误线和上传文件到服务器。

I removed my error lines and uploaded the file back to the server.

推荐答案

正如我告诉你在我的评论,/ VAR里的error_log文件/日志/ httpd的文件夹是Apache网络服务器错误日志。结果
当你的脚本(例如)内发生错误,它附加在该文件中。结果
所以这是非常重要的(如果你想了解发生了什么),你看看这个文件,以提高你的脚本中删除故障。结果
然后,你可以尝试删除它,即使我不知道,因为它使用它...停止Web服务器,删除该文件并重新启动Apache的将是一个更好的解决方案Apache将不会抱怨,即使我明白这可能是不可能的如果你的web空间被你控制托管,而不是...

As I told you in my comment, error_log file inside /var/log/httpd folder is the Apache webserver error log.
When an error occurs inside your script (for example), it's appended in that file.
So it's really important (if you want to understand what's happening) that you take a look at that file to improve your script removing faults.
Then you can try to delete it, even if I'm not sure Apache won't complain because it's using it... Stopping webserver, removing that file and restarting Apache would be a better solution, even if I understands that could be impossible if your web-space is hosted and not under your control...

这篇关于我在哪里可以找到错误日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆