Internal Server Error

Discussion in 'Apache' started by Darkhodge, Dec 15, 2006.

  1. #1
    Hey,


    The homepage to my site is a index.htm file and I want to enable PHP on it. I read that the following in a .htaccess file placed in the root directory should do this:

    AddType application/x-httpd-php .htm

    But when I upload that file to the server I get the following error message:


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

    Please contact the server administrator, 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.
    ==


    How do I solve this problem?


    Thanks,

    Hodge :)
     
    Darkhodge, Dec 15, 2006 IP
  2. Darkhodge

    Darkhodge Well-Known Member

    Messages:
    2,111
    Likes Received:
    76
    Best Answers:
    1
    Trophy Points:
    185
    #2
    Sorry don't worry about it. I researched it on the net and got it working.

    In case anyone has the same problem try replacing:

    
    AddType application/x-httpd-php .htm
    
    Code (markup):
    With

    
    AddHandler application/x-httpd-php .htm
    
    Code (markup):

    Hope that helps :)

    Hodge
     
    Darkhodge, Dec 15, 2006 IP