[Xitami] Perl/cgi/php

Preston Kibbey preston at conferenceroom.cc
Fri Apr 7 02:05:23 CEST 2006


when i do get the programs to work with the url then they only prompt me to download the file but does not open a page. I followed the instructions also and was again prompted to download the file instead of getting a page.

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....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.imatix.org/pipermail/xitami/attachments/20060406/2a3ff395/attachment.html


More information about the Xitami mailing list