常见网站错误日志分析 打印

  • 1

当网站出了问题,错误日志一般会记录出错的信息,您可以登录cPanel面板,在“日志”、“错误日志”那里查看。下面就简单分析一下常见的错误日志:

1. File does not exist: home/somtin/public_html/robots.txt

这种错误是说文件不存在,例子中的是robots.txt这个文件,要检查文件是否上传或上传到正确的文件夹了。

2. Permission denied: file permissions deny server access: /home/user/public_html/index.html

这个一般是403错误,无权访问index.html页面,请参考知识百科中“403 Forbidden错误是怎么回事”这篇文章。

3. error: file is writable by others: (/home/demouser/public_html/index.php)

这个常见的是500错误,请参考知识百科中“500 Internal Server Error是什么问题”这篇文章。

4. error: file has no execute permission: (/home/inono/public_html/cgi-bin/img2txt.cgi)

文件不可执行,将该文件权限设成0755可以解决问题。

5. perhaps mis-spelled or defined by a module not included in the server configuration

.htaccess文件有错,检查这个文件的代码及书写规范。

6. Premature end of script headers: /home/gyms/public_html/cgi-bin/index.pl

可能是Perl程序问题,应该以#!/usr/bin/perl -w开头。


这篇文章对您有帮助吗?

« 返回

Powered by WHMCompleteSolution