|
Brad, I just ordered your book yesterday and it will take a week to get here. I am jumping the gun alittle! I will try what you suggested and let you know if it worked. Justin Houchin Programmer Reliatek, Inc ----- Original Message ----- From: "Brad Stone" <brad@bvstools.com> To: <web400@midrange.com> Sent: Friday, March 29, 2002 10:52 AM Subject: Re: [WEB400] Cannot display page > 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 > > _______________________________________________ > > This is the Web Enabling the AS400 / iSeries (WEB400) > > mailing list > > To post a message email: WEB400@midrange.com > > To subscribe, unsubscribe, or change list options, > > visit: http://lists.midrange.com/cgi-bin/listinfo/web400 > > or email: WEB400-request@midrange.com > > Before posting, please take a moment to review the > > archives > > at http://archive.midrange.com/web400. > > > > Bradley V. Stone > BVS.Tools > www.bvstools.com > _______________________________________________ > This is the Web Enabling the AS400 / iSeries (WEB400) mailing list > To post a message email: WEB400@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/web400 > or email: WEB400-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/web400. > >
As an Amazon Associate we earn from qualifying purchases.
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.