<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19222">
<STYLE>@font-face {
font-family: Verdana;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt
}
LI.MsoNormal {
MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt
}
DIV.MsoNormal {
MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt
}
H1 {
FONT-FAMILY: "Times New Roman"; MARGIN-LEFT: 0cm; FONT-SIZE: 24pt; FONT-WEIGHT: bold; MARGIN-RIGHT: 0cm; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
P {
FONT-FAMILY: "Times New Roman"; MARGIN-LEFT: 0cm; FONT-SIZE: 12pt; MARGIN-RIGHT: 0cm; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle17 {
FONT-FAMILY: Arial; COLOR: windowtext; mso-style-type: personal-compose
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US link=blue bgColor=#ffffff vLink=purple>
<DIV><FONT size=2 face=Arial>Hi Howie</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I've hit similar when trying to get the same effect
with Perl (although it has to be for a specific site with Perl). In the
end I added it to the site#.include file. </FONT><FONT size=2
face=Arial>Maybe PHP will benefit from the same.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Richard</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=howie@howie.co.uk href="mailto:howie@howie.co.uk">Howie Dines</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=blueonyx@mail.blueonyx.it
href="mailto:blueonyx@mail.blueonyx.it">blueonyx@mail.blueonyx.it</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, May 27, 2012 7:52 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [BlueOnyx:10668] .htaccess
php.conf "AddTypeapplication/x-httpd-php .htm .html"</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Hi
all,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">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-FAMILY: Arial; FONT-SIZE: 10pt">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-FAMILY: Arial; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">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-FAMILY: Arial; FONT-SIZE: 10pt">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-FAMILY: Arial; FONT-SIZE: 10pt">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-FAMILY: Arial; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">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-FAMILY: Arial; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">I’ve tried the method of adding
the command to the .htaccess file , </SPAN></FONT><FONT color=#333333 size=2
face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt">AddType
application/x-httpd-php .htm .html</SPAN><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt">But
this causes an error<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt">Internal
Server Error<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt">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 color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt">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 color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt">More
information about this error may be available in the server error
log.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt">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 color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt">Can
anyone help me with a solution ?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt">Best
Regards,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt">Howie
Dines<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=#333333 size=2 face=Verdana><SPAN
style="FONT-FAMILY: Verdana; BACKGROUND: #fafafa; COLOR: #333333; FONT-SIZE: 10pt">http://www.dincom.co.uk/bq<o:p></o:p></SPAN></FONT></P></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Blueonyx mailing
list<BR>Blueonyx@mail.blueonyx.it<BR>http://mail.blueonyx.it/mailman/listinfo/blueonyx<BR></BLOCKQUOTE></BODY></HTML>