phpcpaneldirectory-listing

Internal Server Error - PHP - cPanel


I have a PHP site hosted with cPanel. Yesterday, I changed certain directory listings (using Index Manager). I initially changed the settings from "Default System Setting" to "No Indexing" on all the directories and afterwards I have started getting following error :

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.

I have then reverted all the settings back to their original but still getting the same error.

Following error is shown in Error Log -

[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

I don't understand how to resolve this!! Please help!!


Solution

  • It's an error in your htaccess. Open .htaccess in a texteditor. The line with ErrorDocument should look like this:

    ErrorDocument 404     /404.html