15
8

如何自己获得Godaddy的错误日志?

今天不小心覆盖了一个错误的.htaccess文件,导致网站无法访问,提示500错误,如下:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

原来Godaddy默认的apache日志是关闭的。

解决方法:打开hosting control center,选择Settings菜单下的Error Logs,注意看右边的英文提示:

Apache error logs are disabled by default. You can enable error logs for a twenty-four hour period, during which time the logs are available through the CGI Admin panel. After the time period elapses, the error log is cleared.

The twenty-four hour logging period can be invoked at any time. If this is done during an existing collection period, all previous log entries are deleted and collection begins anew.

To enable error logs, click Update. To view error logs, click Launch CGI Admin.

大概意思是说:Apache的错误日志默认是关闭的,可以按“Update”按钮手动开启,但是记录的日志只在24小时内有效,超过时间就会被删除。点击“Launch CGI Admin”弹出一个认证窗体,输入你的主FTP帐号密码就可以看见错误日志了。

那么大的空间,连个日志记录都那么小气,真搞不懂了,万一遇到黑客入侵,连个日志都找不到。

2 条评论了已经

发表评论

名字(必须)
3 + 7= 简单加法计算,为了防止垃圾留言
邮箱(不会被公布)(必须)
网址

字体为 粗体 是必填项目,邮箱地址 永远不会 公布。

允许部分 HTML 代码:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URLs(网站链接)必须完整有效 (比如: http://dream4u.net),所有标签都必须完整的关闭。

超出部分系统将会自动分段及换行。

请保证评论内容是与日志或 Blog 内容相关的,灌水、攻击性或不恰当的评论 可能 会被编辑或删除。