SSI Rejection

SSI Rejection

am 30.12.2009 18:28:48 von Wesley Stupar

------=_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"-



Some HTML text.



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

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">


charset=3Dus-ascii">






namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"time"/>





style=3D'tab-interval:.5in'>



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 “ class=3DSpellE>testssi.shtml”—
>



style=3D'font-size:10.0pt;
font-family:Arial'> 



style=3D'font-size:10.0pt;
font-family:Arial'>< class=3DGramE>html>



style=3D'font-size:10.0pt;
font-family:Arial'>< class=3DGramE>body>



style=3D'font-size:10.0pt;
font-family:Arial'> Some =
HTML text…



style=3D'font-size:10.0pt;
font-family:Arial'></body>



style=3D'font-size:10.0pt;
font-family:Arial'>< class=3DGramE>html>



style=3D'font-size:10.0pt;
font-family:Arial'> 



style=3D'font-size:10.0pt;
font-family:Arial'>I get this in the class=3DSpellE>error_log:



style=3D'font-size:10.0pt;
font-family:Arial'> 



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



face=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>exec nt
size=3D2 face=3DArial> style=3D'font-size:10.0pt;font-family:Arial'> of
'/usr/local/apache2/htdocs/testssi.shtml' =
failed



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



face=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>t size=3D2
face=3DArial> =
headers: class=3DSpellE>testssi.shtml



style=3D'font-size:10.0pt;
font-family:Arial'> 



style=3D'font-size:10.0pt;
font-family:Arial'>The …htdocs =
directory has “Options
ALL” in the httpd.conf =
file.



style=3D'font-size:10.0pt;
font-family:Arial'> 



face=3DArial> style=3D'font-size:10.0pt;font-family:Arial'>Any =
advice?
size=3D2 face=3DArial> style=3D'font-size:10.0pt;font-family:Arial'> >

style=3D'font-size:10.0pt;
font-family:Arial'> 



style=3D'font-size:10.0pt;
font-family:Arial'>Wes









------=_NextPart_000_0001_01CA8932.7E069090--

Re: SSI Rejection

am 30.12.2009 18:33:58 von Eric Covener

On Wed, Dec 30, 2009 at 12:28 PM, Wesley Stupar 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@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

RE: SSI Rejection

am 30.12.2009 18:47:57 von Wesley Stupar

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@gmail.com]
Sent: Wednesday, December 30, 2009 9:34 AM
To: users@httpd.apache.org; compaps@roadrunner.com
Subject: Re: [users@httpd] SSI Rejection

On Wed, Dec 30, 2009 at 12:28 PM, Wesley Stupar
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@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server
Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: SSI Rejection

am 30.12.2009 18:55:39 von Eric Covener

On Wed, Dec 30, 2009 at 12:47 PM, Wesley Stupar 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@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: SSI Rejection

am 30.12.2009 18:57:09 von LuKreme

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


--=20
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 for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

RE: Re: SSI Rejection

am 30.12.2009 20:03:08 von Wesley Stupar

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@kreme.com]
Sent: Wednesday, December 30, 2009 9:57 AM
To: users@httpd.apache.org
Subject: [users@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 for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org