[SOLVED] Internal Server Error

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
reecec
Forum Contributor
Posts: 218
Joined: Sun Apr 02, 2006 7:12 am

[SOLVED] Internal Server Error

Post 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
Last edited by reecec on Sun Sep 30, 2007 3:48 pm, edited 1 time in total.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Internal Server Error

Post by John Cartwright »

Code: Select all

AddType application/x-httpd .php .html .htm
I believe you need the periods before the extension
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

Try adding dot before file extensions: .html
Also your

Code: Select all

ErrorDocument 501
directive points to none existing file.
There are 10 types of people in this world, those who understand binary and those who don't
reecec
Forum Contributor
Posts: 218
Joined: Sun Apr 02, 2006 7:12 am

Post 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
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post 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?
There are 10 types of people in this world, those who understand binary and those who don't
reecec
Forum Contributor
Posts: 218
Joined: Sun Apr 02, 2006 7:12 am

Post by reecec »

Solved i needed a handler

Code: Select all

AddHandler application/x-httpd-php .htm
Thanks anyway
Post Reply