<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
h1
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:24.0pt;
font-family:"Times New Roman";
font-weight:bold;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi all,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have a site that in need to run .html files as php.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>In the past I used to the following<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>vi /etc/httpd/conf.d/php.conf<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>add "AddType application/x-httpd-php .html"<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>restart apache /etc/rc.d/init.d/httpd restart<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’m now running on a BlueOnyx virtual host and every
time the server reboots it adds a # to the line in the php.conf file hence
turning it off.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’ve tried the method of adding the command to the
.htaccess file , </span></font><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'>AddType
application/x-httpd-php .htm .html</span><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'>But
this causes an error<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'>Internal
Server Error<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'>The
server encountered an internal error or misconfiguration and was unable to
complete your request.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'>Please
contact the server administrator, admin and inform them of the time the error
occurred, and anything you might have done that may have caused the error.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'>More
information about this error may be available in the server error log.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'>Additionally,
a 500 Internal Server Error error was encountered while trying to use an
ErrorDocument to handle the request.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'>Can
anyone help me with a solution ?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'>Best
Regards,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'>Howie
Dines<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color="#333333" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#333333;background:#FAFAFA'>http://www.dincom.co.uk/bq<o:p></o:p></span></font></p>
</div>
</body>
</html>