[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-WebCGI] Can't even get Hello World to work



Yo,

Ok, this problem has nothing to do with your Perl scripts.

When you can look at the source in your browser and you see:
<!--#exec cgi="hello.cgi"-->

This means that your server-side includes aren't on or aren't working.  Read
your server manuals and try to get these running or call your sys admin.
Fix that and you should be fine.

------------------
Joe Erickson
Logic Gardener
www.eyemg.com



on 11/14/00 5:43 PM, tedd at tedd@sperling.com wrote:

> Hi:
> 
> Okay, I'm stuck trying to get the simplest cgi to run, maybe someone can help.
> 
> The demo of the problem is located at:
> 
> http://www.sperling.com/hello.html
> 
> The html code (at the above location) is as follows:
> 
> <html>
> <head>
> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
> <title>Test to see if hello cgi works</title>
> </head>
> <body bgcolor="white">
> <center>
> ***
> <h3>Hello.cgi  Example</h3>
> <!--#exec cgi="hello.cgi"-->
> ***
> <h3>Hello.cgi in cgi-bin Example</h3>
> <!--#exec cgi="cgi-bin/hello.cgi"-->
> ***
> </center>
> </body>
> </html>
> 
> The cgi code (at the above location) is as follows:
> 
> #!/usr/bin/perl
> print "Content-type: text/html\n\n";
> print "Hello";
> 
> The permissions are set correctly (actually at 777) and perl is where
> it's supposed to be, however, when I call the "hello.html" ( i.e.,
> http://www.sperling.com/hello.html) via my browser, the cgi scripts
> referenced (i.e., hello.cgi and cgi-bin/hello.cgi) by the html
> document don'tt run -- why?  There is something that I'm not getting
> here and this real simple example illustrates it.
> 
> I have read everything I can lay my hands on, but the solution evades me.
> 
> Many thanks for any help or suggestions anyone may make.
> 
> tedd
> 
> 


==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org