Page 1 of 1
[SOLVED] Internal Server Error
Posted: Sun Sep 30, 2007 3:13 pm
by reecec
Code: Select all
AddType application/x-httpd-php html htm
I have tried adding this file type for php but seem to get this error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
root@svr5.sirkels.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.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at svr5.sirkels.com Port 80
Any ideas?
Thanks
Reece
Re: Internal Server Error
Posted: Sun Sep 30, 2007 3:19 pm
by John Cartwright
Code: Select all
AddType application/x-httpd .php .html .htm
I believe you need the periods before the extension
Posted: Sun Sep 30, 2007 3:21 pm
by VladSun
Try adding dot before file extensions: .html
Also your
directive points to none existing file.
Posted: Sun Sep 30, 2007 3:26 pm
by reecec
Thanks for you quick reply s
Code: Select all
AddType application/x-httpd-php .php .html .htm
Still gives error
what did you mean about the 501
Posted: Sun Sep 30, 2007 3:42 pm
by VladSun
1. Have you restarted your Apache after you changed your config file?
2. about 501 - search the httpd.conf file for "ErrorDocument 501" and fix the path/file name adter it.
EDIT: What are the contents of the file you are trying to open, so you receive this 501 error?
Posted: Sun Sep 30, 2007 3:48 pm
by reecec
Solved i needed a handler
Code: Select all
AddHandler application/x-httpd-php .htm
Thanks anyway