[Xitami] SSI Help desperately needed

dimitri xitami@lists.xitami.org
Mon, 2 Jul 2001 09:12:25 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_001A_01C102D7.1C621A20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

>From earier thread and answer about SSi not working:

Folks,

There is another way, I think better. I have a site
http://www.altair7.com/index.html that uses a perl script for opening =
page,
see for your self.

I do not have the SSI_INSECURE set.  I do have MIME types defined as =
following
for the master config:

.pl =3D c:\perl\bin\perlis.dll
.cgi =3D c:\perl\bin\perlis.dll

This solved all my problems.

Steps:

1. http://127.0.0.1/admin
2. configuration -> mime
3. enter the above values
4. save
5. click on restart from the main page

Done.

With that done, then this works:

http://www.altair7.com/cgi-bin/od.pl

This works with xitami 2.4d1 through 7 and xitami pro versions.

Hope that helps, always make sure that you protect your perl scripts.

Cheers,
-Roberto

Patrick Olson wrote:
>=20
> This is how I got Perl running in Xitami
> it allows me to use,
>=20
> <!--#exec cgi=3D"/cgi-bin/test.pl" -->
>=20
> This SSI command
> which is a potential security risk for your system
> is only accepted if the environment variable
> SSI_INSECURE is set to 'yes'
> Under Windows NT
> in the System Control Panel
> under 'Environment
> =
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-
> Start->Settings->Control Panel
>=20
> Double click on System
>=20
> From the pop-up box select the Environment tab
>=20
>  In the Variable entry field type SSI_INSECURE
>  In the Value entry field type YES
>  (Make sure it goes where you want it,
>   System Variables probably.)
>=20
> Click OK
>=20
> Reboot?  (I don't know if this is required.)
> =
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-
>=20
> under Windows 95/98 by adding
> SET SSI_INSECURE=3Dyes to the autoexec.bat.
> to run SSI.
> If Perl is installed correctly?
> On a windows system,
> You then should be able to call
> Perl from anywhere in your system.
> This allows the shebang to be #! perl -w
> and does not need to be like this
> #! c:\perl\bin\perl.exe
> this also allows the use of
> #! /usr/bin/perl
> for the shebang. so as long
> as we don't use win32 specific modules
> or system calls we can keep our programs
> cross platform Compatible.
>=20
> Running Windows98
> Xitami v2.4d6
>=20
> in your
> autoexec.bat
>=20
> SET PATH=3DC:\PERL\BIN;%PATH%
> SET SSI_INSECURE=3DYES
>=20
> defaults.cfg
> [Filter]
>     .shtm=3Dperlssi
>     .shtml=3Dperlssi
>     .ssi=3Dperlssi
> [Ssi]
>     Enabled=3D1
>     Exec=3D1
>=20
> hope this helps
> http://www.isonline.com/xitami/2000/Jun/Msgs/l2w81135.html
> http://127.0.0.1/xitami/index5.htm
> http://127.0.0.1/xitami/index6.htm
>=20
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami

--
Xitami Users Mailing List -- For Xitami support
To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
  ----- Original Message -----=20
  From: Cwmoreland@cs.com=20
  To: xitami@lists.xitami.org=20
  Sent: Sunday, July 01, 2001 4:04 AM
  Subject: Re: [Xitami] SSI Help desperately needed


  Well, I downloaded 2.5b5, both for my win95 laptop and for my win2000 =
desktop=20
  and the SSI demo does not work for either. Other people are having =
success,=20
  so obviously there is something fundamental I'm doing wrong. If I =
install=20
  Xitami fresh on a system, what needs to be done just to get the SSI =
demo to=20
  run? I've added SSI_INSECURE=3Dyes to autoexec (w95) and the env =
(w2k).=20
  Anything else, or should it now work?=20

  I'd like to stick with this until I get it fixed, and appreciate any =
help=20
  offered.=20

  Regards,=20
  Carl=20


------=_NextPart_000_001A_01C102D7.1C621A20
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>From earier thread and answer about SSi not=20
working:</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV>Folks,<BR><BR>There is another way, I think better. I have a =
site<BR><A=20
href=3D"http://www.altair7.com/index.html">http://www.altair7.com/index.h=
tml</A>=20
that uses a perl script for opening page,<BR>see for your self.<BR><BR>I =
do not=20
have the SSI_INSECURE set.&nbsp; I do have MIME types defined as=20
following<BR>for the master config:<BR><BR>.pl =3D =
c:\perl\bin\perlis.dll<BR>.cgi=20
=3D c:\perl\bin\perlis.dll<BR><BR>This solved all my=20
problems.<BR><BR>Steps:<BR><BR>1. <A=20
href=3D"http://127.0.0.1/admin">http://127.0.0.1/admin</A><BR>2. =
configuration=20
-&gt; mime<BR>3. enter the above values<BR>4. save<BR>5. click on =
restart from=20
the main page<BR><BR>Done.<BR><BR>With that done, then this =
works:<BR><BR><A=20
href=3D"http://www.altair7.com/cgi-bin/od.pl">http://www.altair7.com/cgi-=
bin/od.pl</A><BR><BR>This=20
works with xitami 2.4d1 through 7 and xitami pro versions.<BR><BR>Hope =
that=20
helps, always make sure that you protect your perl=20
scripts.<BR><BR>Cheers,<BR>-Roberto<BR><BR>Patrick Olson wrote:<BR>&gt; =
<BR>&gt;=20
This is how I got Perl running in Xitami<BR>&gt; it allows me to =
use,<BR>&gt;=20
<BR>&gt; &lt;!--#exec cgi=3D"/cgi-bin/test.pl" --&gt;<BR>&gt; <BR>&gt; =
This SSI=20
command<BR>&gt; which is a potential security risk for your =
system<BR>&gt; is=20
only accepted if the environment variable<BR>&gt; SSI_INSECURE is set to =

'yes'<BR>&gt; Under Windows NT<BR>&gt; in the System Control =
Panel<BR>&gt; under=20
'Environment<BR>&gt; =
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-<BR>&gt;=20
Start-&gt;Settings-&gt;Control Panel<BR>&gt; <BR>&gt; Double click on=20
System<BR>&gt; <BR>&gt; From the pop-up box select the Environment =
tab<BR>&gt;=20
<BR>&gt;&nbsp; In the Variable entry field type =
SSI_INSECURE<BR>&gt;&nbsp; In=20
the Value entry field type YES<BR>&gt;&nbsp; (Make sure it goes where =
you want=20
it,<BR>&gt;&nbsp;&nbsp; System Variables probably.)<BR>&gt; <BR>&gt; =
Click=20
OK<BR>&gt; <BR>&gt; Reboot?&nbsp; (I don't know if this is =
required.)<BR>&gt;=20
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-<BR>&gt; <BR>&gt; under Windows 95/98 by=20
adding<BR>&gt; SET SSI_INSECURE=3Dyes to the autoexec.bat.<BR>&gt; to =
run=20
SSI.<BR>&gt; If Perl is installed correctly?<BR>&gt; On a windows=20
system,<BR>&gt; You then should be able to call<BR>&gt; Perl from =
anywhere in=20
your system.<BR>&gt; This allows the shebang to be #! perl -w<BR>&gt; =
and does=20
not need to be like this<BR>&gt; #! c:\perl\bin\perl.exe<BR>&gt; this =
also=20
allows the use of<BR>&gt; #! /usr/bin/perl<BR>&gt; for the shebang. so =
as=20
long<BR>&gt; as we don't use win32 specific modules<BR>&gt; or system =
calls we=20
can keep our programs<BR>&gt; cross platform Compatible.<BR>&gt; =
<BR>&gt;=20
Running Windows98<BR>&gt; Xitami v2.4d6<BR>&gt; <BR>&gt; in your<BR>&gt; =

autoexec.bat<BR>&gt; <BR>&gt; SET PATH=3DC:\PERL\BIN;%PATH%<BR>&gt; SET=20
SSI_INSECURE=3DYES<BR>&gt; <BR>&gt; defaults.cfg<BR>&gt;=20
[Filter]<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
.shtm=3Dperlssi<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
.shtml=3Dperlssi<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; .ssi=3Dperlssi<BR>&gt;=20
[Ssi]<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; =
Enabled=3D1<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
Exec=3D1<BR>&gt; <BR>&gt; hope this helps<BR>&gt; <A=20
href=3D"http://www.isonline.com/xitami/2000/Jun/Msgs/l2w81135.html">http:=
//www.isonline.com/xitami/2000/Jun/Msgs/l2w81135.html</A><BR>&gt;=20
<A=20
href=3D"http://127.0.0.1/xitami/index5.htm">http://127.0.0.1/xitami/index=
5.htm</A><BR>&gt;=20
<A=20
href=3D"http://127.0.0.1/xitami/index6.htm">http://127.0.0.1/xitami/index=
6.htm</A><BR>&gt;=20
<BR>&gt; --<BR>&gt; Xitami Users Mailing List -- For Xitami =
support<BR>&gt; To=20
unsubscribe: <A=20
href=3D"http://lists.xitami.org/mailman/listinfo/xitami">http://lists.xit=
ami.org/mailman/listinfo/xitami</A><BR><BR>--<BR>Xitami=20
Users Mailing List -- For Xitami support<BR>To unsubscribe: <A=20
href=3D"http://lists.xitami.org/mailman/listinfo/xitami">http://lists.xit=
ami.org/mailman/listinfo/xitami</A></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3DCwmoreland@cs.com=20
  href=3D"mailto:Cwmoreland@cs.com">Cwmoreland@cs.com</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dxitami@lists.xitami.org=20
  href=3D"mailto:xitami@lists.xitami.org">xitami@lists.xitami.org</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Sunday, July 01, 2001 =
4:04 AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [Xitami] SSI Help=20
  desperately needed</DIV>
  <DIV><BR></DIV><FONT face=3Darial,helvetica><FONT size=3D2>Well, I =
downloaded=20
  2.5b5, both for my win95 laptop and for my win2000 desktop <BR>and the =
SSI=20
  demo does not work for either. Other people are having success, <BR>so =

  obviously there is something fundamental I'm doing wrong. If I install =

  <BR>Xitami fresh on a system, what needs to be done just to get the =
SSI demo=20
  to <BR>run? I've added SSI_INSECURE=3Dyes to autoexec (w95) and the =
env (w2k).=20
  <BR>Anything else, or should it now work? <BR><BR>I'd like to stick =
with this=20
  until I get it fixed, and appreciate any help <BR>offered. =
<BR><BR>Regards,=20
  <BR>Carl <BR></BLOCKQUOTE></FONT></FONT></BODY></HTML>

------=_NextPart_000_001A_01C102D7.1C621A20--