0

我有一个使用 cPanel 托管的 PHP 站点。昨天,我更改了某些目录列表(使用索引管理器)。我最初将所有目录的设置从“默认系统设置”更改为“无索引”,然后我开始收到以下错误:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to     complete your request.

Please contact the server administrator, webmaster@***.*** 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.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

然后我将所有设置恢复为原始设置,但仍然出现相同的错误。

以下错误显示在错误日志中 -

[Tue Dec 04 01:20:54 2012] [alert] [client 119.226.234.18] /home/***/public_html/.htaccess: ErrorDocument takes two arguments, ErrorDocument Apache configuration directive

我不明白如何解决这个问题!!请帮忙!!

4

3 回答 3

3

这是您的 htaccess 中的错误。在文本编辑器中打开 .htaccess。带有 ErrorDocument 的行应如下所示:

ErrorDocument 404     /404.html
于 2012-12-04T07:28:58.203 回答
1

我也面临同样的问题。通过更改我试图在文件管理器中访问 755 的文件夹权限解决了该问题。

于 2021-07-12T18:40:24.113 回答
0

尝试检查此错误日志:

/usr/local/apache/logs/error_log
于 2017-03-11T08:58:47.583 回答