SSI Rejection

------=_NextPart_000_0001_01CA8932.7E069090
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

I am trying to get SSI working on apache2 on Ubuntu Linux. Even with the
simple file titled "testssi.shtml"-

<html>
<body>
Some HTML text.
</body>
<html>

I get this in the error_log:

[Wed Dec 30 16:53:53 2009] [error] [client 192.168.1.107] (8)Exec format
error:
exec of '/usr/local/apache2/htdocs/testssi.shtml' failed
[Wed Dec 30 16:53:53 2009] [error] [client 192.168.1.107] Premature end
of scrip
t headers: testssi.shtml

The .htdocs directory has "Options ALL" in the httpd.conf file.

Any advice?

Wes

------=_NextPart_000_0001_01CA8932.7E069090
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml [at] 01CA8932.76B4A200">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"time"/>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:UseFELayout/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
[at] font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:\5B8B\4F53;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
[at] font-face
{font-family:"\ [at] SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:SimSun;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
span.EmailStyle17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
span.SpellE
{mso-style-name:"";
mso-spl-e:yes;}
span.GramE
{mso-style-name:"";
mso-gram-e:yes;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I am trying to get SSI working on apache2 on Ubuntu =
Linux. Even
with the simple file titled “<span =
class=3DSpellE>testssi.shtml</span>”—<o:p></o:p></span></font=
></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><<span =
class=3DGramE>html</span>><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><<span =
class=3DGramE>body</span>><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'> </span>Some =
HTML text…<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'></body><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><<span =
class=3DGramE>html</span>><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I get this in the <span =
class=3DSpellE>error_log</span>:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>[Wed Dec 30 </span></font><st1:time Hour=3D"16" =
Minute=3D"53"><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>16:53:53</span></font></st1:=
time><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> 2009] [<span
class=3DGramE>error</span>] [<span class=3DGramE>client</span> =
192.168.1.107]
(8)Exec format error:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>exec</span></font></span><fo=
nt
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> of
'/usr/local/apache2/htdocs/testssi.shtml' =
failed<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>[Wed Dec 30 </span></font><st1:time Hour=3D"16" =
Minute=3D"53"><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>16:53:53</span></font></st1:=
time><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'> 2009] [<span
class=3DGramE>error</span>] [<span class=3DGramE>client</span> =
192.168.1.107]
Premature end of scrip<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>t</span></font></span><font =
size=3D2
face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> =
headers: <span
class=3DSpellE>testssi.shtml</span><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The …<span class=3DSpellE>htdocs</span> =
directory has “Options
ALL” in the <span class=3DSpellE>httpd.conf</span> =
file.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Any =
advice?</span></font></span><font
size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p=
>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Wes<o:p></o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0001_01CA8932.7E069090--
Wesley Stupar [ Mi, 30 Dezember 2009 18:28 ] [ ID #2027441 ]

Re: SSI Rejection

On Wed, Dec 30, 2009 at 12:28 PM, Wesley Stupar <compaps [at] roadrunner.com> wrote:

> [Wed Dec 30 16:53:53 2009] [error] [client 192.168.1.107] (8)Exec format
> error:
>
> exec of '/usr/local/apache2/htdocs/testssi.shtml' failed
>

How have you told Apache to execute the SHTML instead of just parsing
it for SSI?

--
Eric Covener
covener [at] gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Eric Covener [ Mi, 30 Dezember 2009 18:33 ] [ ID #2027442 ]

RE: SSI Rejection

Well, I guess that is my problem. I have studied the following:

http://httpd.apache.org/docs/2.2/howto/ssi.html
http://www.maths.ox.ac.uk/help/faqs/www/ssi
http://eregie.premier-ministre.gouv.fr/manual/howto/ssi.html #conclusion

But I don't know what you mean by " How have you told Apache to execute
the SHTML". How do you do that?

Thanks,
Wes

-----Original Message-----
From: Eric Covener [mailto:covener [at] gmail.com]
Sent: Wednesday, December 30, 2009 9:34 AM
To: users [at] httpd.apache.org; compaps [at] roadrunner.com
Subject: Re: [users [at] httpd] SSI Rejection

On Wed, Dec 30, 2009 at 12:28 PM, Wesley Stupar <compaps [at] roadrunner.com>
wrote:

> [Wed Dec 30 16:53:53 2009] [error] [client 192.168.1.107] (8)Exec
format
> error:
>
> exec of '/usr/local/apache2/htdocs/testssi.shtml' failed
>

How have you told Apache to execute the SHTML instead of just parsing
it for SSI?

--
Eric Covener
covener [at] gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Wesley Stupar [ Mi, 30 Dezember 2009 18:47 ] [ ID #2027443 ]

Re: SSI Rejection

On Wed, Dec 30, 2009 at 12:47 PM, Wesley Stupar <compaps [at] roadrunner.com> wrote:
> Well, I guess that is my problem. I have studied the following:
>
> http://httpd.apache.org/docs/2.2/howto/ssi.html
> http://www.maths.ox.ac.uk/help/faqs/www/ssi
> http://eregie.premier-ministre.gouv.fr/manual/howto/ssi.html #conclusion
>
> But I don't know what you mean by " How have you told Apache to execute
> the SHTML". How do you do that?

It's almost as if you've #include exec= the SHTML or otherwise setup
the SHML as CGI instead of SSI.

--
Eric Covener
covener [at] gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Eric Covener [ Mi, 30 Dezember 2009 18:55 ] [ ID #2027444 ]

Re: SSI Rejection

On 30-Dec-2009, at 10:47, Wesley Stupar wrote:
> But I don't know what you mean by " How have you told Apache to =
execute
> the SHTML". How do you do that?

Well, these are the shtml lines in my httpd.conf file:

$ grep shtml /etc/httpd/httpd.conf
AddType text/html .shtml
AddHandler server-parsed .shtml
DirectoryIndex index.php index.html index.shtml index.htm


--
Stupid men are often capable of things the clever would not dare to =
contemplate... --Feet of Clay


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
LuKreme [ Mi, 30 Dezember 2009 18:57 ] [ ID #2027445 ]

RE: Re: SSI Rejection

All right! I was trying to set up CGI, and I had

AddHandler cgi-script .sh

in the httpd.conf file. When I reverted to SSI, I mistakenly changed to

AddHandler cgi-script .shtml

Which should have been

AddHandler server-parsed .shtml

which I have now changed it to, and the SSI now works.

My very great thanks to Eric and Lukreme!

Wes

-----Original Message-----
From: LuKreme [mailto:kremels [at] kreme.com]
Sent: Wednesday, December 30, 2009 9:57 AM
To: users [at] httpd.apache.org
Subject: [users [at] httpd] Re: SSI Rejection

On 30-Dec-2009, at 10:47, Wesley Stupar wrote:
> But I don't know what you mean by " How have you told Apache to
execute
> the SHTML". How do you do that?

Well, these are the shtml lines in my httpd.conf file:

$ grep shtml /etc/httpd/httpd.conf
AddType text/html .shtml
AddHandler server-parsed .shtml
DirectoryIndex index.php index.html index.shtml index.htm


--
Stupid men are often capable of things the clever would not dare to
contemplate... --Feet of Clay


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Wesley Stupar [ Mi, 30 Dezember 2009 20:03 ] [ ID #2027447 ]
Webserver » gmane.comp.apache.user » SSI Rejection

Vorheriges Thema: "Script GET /cgi-bin/foo" doesn't apply to all GET requests
Nächstes Thema: mod_rewrite + mod_headers :How to set Cache instructions for Rewritten .swf content only ?