2012-12-04 87 views
0

我有一个PHP网站与cPanel托管。 昨天,我改变了某些目录列表(使用索引管理器)。内部服务器错误 - PHP的 - cPanel

Internal Server Error 

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

Please contact the server administrator, [email protected]***.*** 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 

我不知道如何解决这个!请帮忙!!

回答

3

这是你的htaccess错误。 在文本编辑器中打开.htaccess。用ErrorDocument的行应该是这样的:

ErrorDocument 404  /404.html 
+0

(正如你看到的,它应该有后2个东西,你似乎只有一个。也许是忘记了一个空间,或许忘记了'404',类似的东西。) – Nanne

+0

问题与404 Not Found'错误有什么关系? 'ErrorDocument'指令中的错误并不意味着它必须是'ErrorDocument 404'。 –

+0

好的,明白了!谢谢,它解决了这个问题! @桑德罗斯 - 你是救世主:) – weber

0

尝试检查这个错误日志:

/usr/local/apache/logs/error_log