[Xitami] A newbie question....

Francis Turner francis.turner at gmail.com
Wed Apr 5 09:27:37 CEST 2006


OK you have a problem with perl being called by Xitami. Perl should
not be opening a comand prompt window. I've never seen this behaviour
so I'm not completely clear why it is doing so but I repeat my
suggestion to try and run some perl simpler CGI scripts and see if
they do the same thing.

E.g. create a file called example.cgi in your cgi/bin directory with
the following contents and see if http://localhost/cgi-bin/example.cgi
produces displayable HTML or a blank screen
------- start of example.cgi ---
#!/usr/local/bin/perl

use CGI qw(:standard);

print header;
print start_html('A Simple Example'),
    h1('A Simple Example'),end_html;
------- end of example.cgi ---

(note this file works on my Xitami/Windows/Perl setup just fine).

If it does the same thing (window/blank html) then we probably need a
dump of your environment to figure out what is going wrong ...

On 4/4/06, Richard.Copits at bwc.state.oh.us
<Richard.Copits at bwc.state.oh.us> wrote:
>
> It's a Perl script that creates several directories and also produces
> output which I want to show up in a browser. When I run it under DOS,
> the directories get created and it runs and displays the HTML code in
> the DOS window. When I try to run it in the browser window by using
> "http://localhost/xitami/cgi-bin/auction.pl" it pops up a dos window,
> the code sort of flashes by and the dos window closes. It's as though
> the HTML code somehow never "calls" or gets "piped into" the browser so
> that it runs in the browser. When I run the code on a Unix/Apache system
> on my ISP it works fine. I just can't seem to get the output of the PERL
> program (the HTML code..) to show up in the browser. I'm new at this and
> I think I'm missing a step somewhere with getting it to run on a W2k
> system...  I've read as much as I can find on this problem but nothing
> seems to address what I need to do. Perl works, the admin console says
> Xitami is working, but I cant' get the output to show up in my
> browser....
>
>
>
> -----Original Message-----
> From: xitami-bounces at lists.xitami.org
> [mailto:xitami-bounces at lists.xitami.org] On Behalf Of Francis Turner
> Sent: Tuesday, April 04, 2006 4:04 PM
> To: Xitami Users General Discussion
> Subject: Re: [Xitami] A newbie question....
>
> Without a touch more information - e.g.the perl script or critical
> portions of it - its going to be hard to answer your question.
>
> My on;y other suggestion would be to try running one the the CGI.pm
> example scripts -
> http://search.cpan.org/src/LDS/CGI.pm-3.17/examples/index.html - and
> see if it works as it should.
>
> Francis
>
> On 4/4/06, Richard.Copits at bwc.state.oh.us
> <Richard.Copits at bwc.state.oh.us> wrote:
> >
> > I have just downloaded xitami and gotten it configured - I hope
> correctly -
> > on my W2K professional system. I've installed PERL as well. I put a
> PERL
> > .PL in c:\xitami\cgi-bin and tried running it by using my IE browser
> to run
> > it.
> >
> > I'm sure the program runs as it creates three directories like it's
> supposed
> > to, but I can't get the HTML to display the web page that it produces.
> Am I
> > doing something wrong or ???
> >
> > Thank you for any suggestions on what I should be looking for/at.
> >
> > Portions of this message may be confidential under an exemption to
> Ohio's
> > public records law or under a legal privilege. If you have received
> this
> > message in error or due to an unauthorized transmission or
> interception,
> > please delete all copies from your system without disclosing, copying,
> or
> > transmitting this message.
> >
> > --
> > Xitami Users Mailing List -- For Xitami support
> > To unsubscribe:
> > http://lists.xitami.org/mailman/listinfo/xitami
> >
> >
>
>
> --
> http://www.di2.nu/blog.htm
> Faber's Fourth Law:
>   Necessity is the mother of strange bedfellows.
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
>
> Portions of this message may be confidential under an exemption to Ohio's public records law or under a legal privilege. If you have received this message in error or due to an unauthorized transmission or interception, please delete all copies from your system without disclosing, copying, or transmitting this message.
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>


--
http://www.di2.nu/blog.htm
Faber's Fourth Law:
  Necessity is the mother of strange bedfellows.



More information about the Xitami mailing list