× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Problems with CGI programs
  • From: "Christopher A. Libby" <clibby@xxxxxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 7 Mar 2001 11:57:58 -0500
  • Importance: Normal

I've got my HTTP server setup now, but I'm having problems with a CGI
program I created.  I keep getting "ERROR 500:Bad script request -- script
'/qsys.lib/weblib.lib/webtest1.pgm' not found or not executable".  I have
the sample CGI program by IBM setup and running correctly in the same
library.  I had to screw with it before to get it to work, but I can't
remember what I did.

Does anyone have any suggestions?

HTTP Config:
# * * * * * * * * * * * * * * * * * * * * * * * * * * *
# HTTP DEFAULT CONFIGURATION
# * * * * * * * * * * * * * * * * * * * * * * * * * * *
   UserID   CHRISL
#
   AddType .shtml text/x-ssi-html 8 bit 1.0
   Port                          80
#
   Enable                        GET
   Enable                        POST
#
   Welcome                       index.html
   Welcome                       index.htm
   AlwaysWelcome                 On
#
   Exec  /cgi-bin/*  /qsys.lib/weblib.lib/*
   Pass  /test/* /QSYS.LIB/WEBLIB.LIB/QHTTPSRC.FILE/*
   Pass  /dev/*    /home/dev/*
   Pass  /*        /home/prd/*
#
#  LogFormat         DDS
#  AccessLog   /QSYS.LIB/WEBLIB.LIB/LOG.FILE/ACCESS.MBR
#  CGIERRORLOG  /QSYS.LIB/WEBLIB.LIB/LOG.FILE/CGIERR.MBR

SAMPLE CGI Authorities (this one works):

                          Object    ----------Object-----------
 User        Group       Authority  Opr  Mgt  Exist  Alter  Ref
 QTMHHTTP                *USE        X
 QTMHHTP1                *USE        X
 *GROUP      QPGMR       *ALL        X    X     X      X     X
 *PUBLIC                 *USE        X

WEBTEST1 CGI Authorities (This one dies):

                         Object    ----------Object-----------
User        Group       Authority  Opr  Mgt  Exist  Alter  Ref
QTMHHTTP                *USE        X
QTMHHTP1                *USE        X
*GROUP      QPGMR       *ALL        X    X     X      X     X
*PUBLIC                 *USE        X

---------------------------------------------------------
Christopher A. Libby, Programmer/Analyst
Maine Public Service Company (www.mainepublicservice.com)
clibby@mainepublicservice.com (207) 768-5811 ext. 2210




Maine Public Service Company
www.mainepublicservice.com


+---
| This is the WEB400 Mailing List!
| To submit a new message, send your mail to WEB400@midrange.com.
| To subscribe to this list send email to WEB400-SUB@midrange.com.
| To unsubscribe from this list send email to WEB400-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.