× 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.



You originally stated that the problem was the CGIDEV2 CGI program being downloaded as a file rather than being executed. Is that still the problem?

If so, it's hard to imagine how CGIDEV2 could be the cause.

If your program executes but fails, you can use CGIDEV2's debugging facility to help track down the problem. Also, you can debug the program using STRSRVJOB and STRDBG, stepping through the code to find out where and how it fails. Also potentially useful would be a PBA trace using the TRCTCPAPP command.

Another thing to try is to execute one of CGIDEV2 sample programs to see whether it exhibits the same symptoms.

Regarding PTFs, IBM's recommendations are at http://www-912.ibm.com/s_dir/slkbase.nsf/recommendedfixes.

In addition, the latest group PTF for the HTTP server should be installed too.

For all group PTFs by release, see http://www-912.ibm.com/s_dir/sline003.nsf/GroupPTFs?OpenView&view=GroupPTFs

The latest HTTP Server Group PTF for V5R3 is dated September 2, 2004.

You CGIDEV2 is six versions back level.  The current version is
2003-09-01 14:50:19.

I sent the next version to Giovanni about a week ago. It usually takes him about a month to test and integrate a new version before he releases it to the CGIDEV2 community.

Mel Rothman, CGIDEV2 Author
Mel Rothman, Inc.


Bartell, Aaron L. (TC) wrote:
Update.


Do you have the xTools (www.rpgxtools.com)?

I have my own tools that I have been able to prove this out with, but thanks for the link. I will check those out also.


I have both the CGIDEV2 program and RPG CGI program running from the
same Apache config both out of the same library (AS400CGI) both
using/outputting the same IFS file (/CGIRPG/logtime.html). I created an
RPG CGI pgm to output the logtime.html file just so I could rule out
that it wasn't a CCSID issue with the file.


When I run both programs from an IBM Original HTTP server they both work
fine unchanged.

I must note that our CGIDEV2 version is '2001-09-21 09:20:36'.  I got
that by doing a DSPDTAARA DTAARA(CGIDEV2/VERSION).  In my mind that
shouldn't make a difference given that the CGIDEV2 programs operate just
fine under IBM Original HTTP server.

We also changed QCSSID to 37 from 65535 with no effect (this was
suggested on the CGIDEV2 site).

I think I have narrowed it down to it having something to do with
CGIDEV2.  Any ideas based on the information I have presented?

The machine is on CUM PTF 4077.  Are there other specific PTF's that I
need to apply that wouldn't be covered by this CUM?


Apache config that I am now using (from Brad Stone's site)

Listen *:2012

#DocumentRoot /myweb
#DirectoryIndex index.html

CGIConvMode %%EBCDIC/EBCDIC%%

ScriptAliasMatch ^/cgi-bin/(.*) /qsys.lib/as400cgi.lib/$1.pgm

<Directory />
  Options None
  AllowOverride None
  order deny,allow
  deny from all
</Directory>

<Directory /myweb>
  AllowOverride None
  order allow,deny
  allow from all
  <FilesMatch "\.html(\..+)?$">
    Options +Includes
    SetOutputFilter Includes
  </FilesMatch>
</Directory>

<Directory /qsys.lib/as400cgi.lib>
  allow from all
  order allow,deny
  Options +ExecCGI +Includes
  SetOutputFilter Includes
</Directory>


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.