You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Wesley Stupar <co...@roadrunner.com> on 2009/12/30 18:28:48 UTC

[users@httpd] SSI Rejection

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

Re: [users@httpd] SSI Rejection

Posted by Eric Covener <co...@gmail.com>.
On Wed, Dec 30, 2009 at 12:47 PM, Wesley Stupar <co...@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@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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Re: SSI Rejection

Posted by Wesley Stupar <co...@roadrunner.com>.
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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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


[users@httpd] Re: SSI Rejection

Posted by LuKreme <kr...@kreme.com>.
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] SSI Rejection

Posted by Wesley Stupar <co...@roadrunner.com>.
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 <co...@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@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@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 <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] SSI Rejection

Posted by Eric Covener <co...@gmail.com>.
On Wed, Dec 30, 2009 at 12:28 PM, Wesley Stupar <co...@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@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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org