In addition to what Brad said: if service program QHTTPSVR/QZHBCGI exists on 
your system, you should bind to it instead of QTCP/QTMHCGI.  QZHBCGI replaced 
QTMHCGI several releases ago.

Also, after starting the server with -vv, you don't have to end it to view the 
trace spool files.  You can find them with WRKSPLF with user QTMHHTTP and user 
data equal to your server instance's name.

Mel Rothman, CGIDEV2 Author
IBM eServer Custom Technology Center (eCTC), Rochester, Minnesota
http://www-1.ibm.com/servers/eserver/iseries/service/ctc/
http://www.easy400.ibm.it/en


Brad Stone wrote:
>
> Justin,
>
> A couple things.
>
> change your Exec to
>
> Exec /cgi-bin/* /qsys.lib/pcstore.lib/*.pgm %%EBCDIC%%
>
> Then stop and restart your HTTP server.
>
> Make the request with the URL:
> http://192.168.0.6/cgi-bin/hello
>
> If you still get an error, check a few things:
>
> 1.  That user profiles QTMHHTTP and QTMHHTP1 are *ENABLED
> 2.  That user profile QTMHHTP1 (or *PUBLIC) has at use *USE
> authority to the pcstore library and the hello program
> object.
> 3.  Check the last used date of the hello program.  If it
> has one, then it is getting called.  If it doesn't, the
> problem is most likely one of the above.
> 4.  Check the job logs of your HTTP server instance.
>
> If all else fails, stop your HTTP server.  Then start it
> with the -vv option (very verbose).  Make the request again,
> then end your HTTP server.  This should create a few spooled
> files under user QTMHHTTP that are job traces.  Therer
> should be a clue in there as to what is wrong.
>
> Lastly, buy my eRPG book.  ;)
>
> Brad
> www.bvstools.com
>
> On Fri, 01 Feb 2002 10:10:54 -0600
>  Justin Houchin <jhouchin9@charter.net> wrote:
> > This is a multi-part message in MIME format.
> > --
> > [ Picked text/plain from multipart/alternative ]
> > I have just created a sample CGI Program that displays
> > the famous Hello World in a browser. I downloaded loaded
> > this code from Brad Stones' website. I used CRTRPGMOD
> > MODULE(pcstore/hello) to compile then CRTPGM
> > PGM(pcstore/hello) BNDSVRPGM(QTCP/QTMHCGI) to create the
> > program. The program compiles and is created with no
> > errors in the pcstore library. I have a EXEC statement in
> > my HTTP Server configuration that looks like this:
> >       40  Exec  /cgi-bin/*.pgm  /qsys.lib/pcstore.lib/*
> > %%EBCDIC/MIXED%%  *Off
> >
> > when I enter the URL: http://192.168.0.6/cgi-bin/hello.pgm,
> > I get Page Cannot be found, HTTP 404 Error. Do I need to
> > set a Map and Pass to my CGI directory? Also I just
> > loaded some new PTF's so I think my PTF'S are up to date.
> > Please help a newbee to CGI!
> >
> > Thanks
> > Justin Houchin
> > Programmer
> > Reliatek, Inc
>
> Bradley V. Stone
> BVS.Tools
> www.bvstools.com
> _______________________________________________


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.