|
Matt /QOpenSys QTMHHTTP *RX QTMHHTP1 *RX /QOpenSys/perl QTMHHTTP *RX QTMHHTP1 *RX /QOpenSys/perl/webwrap QTMHHTTP *RX QTMHHTP1 *RX /QOpenSys/perl/webwrap/paseweb QTMHHTTP *RX QTMHHTP1 *RX Also did this from PASE terminal cd /QOpenSys/perl/webwrap/ ¢ chmod 0755 paseweb Made no difference Cheers Colin.W http://as400lbog.blogspot.com -----Original Message----- From: Haas, Matt [mailto:Matt.Haas@xxxxxxxxxxx] Sent: 14 March 2005 13:43 To: Web Enabling the AS400 / iSeries Subject: RE: [WEB400] Getting perl running on iseries Does paseweb have read and execute permissions (you can use chmod 0755 to set them)? Also, QOpenSys is case-sensitive, does the path name exactly match how things actually are on disk? Matt -----Original Message----- From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]On Behalf Of Colin Williams Sent: Monday, March 14, 2005 7:54 AM To: 'Web Enabling the AS400 / iSeries' Subject: [WEB400] Getting perl running on iseries Im trying to get perl up and running on a 400. Ive been following the instructions at http://faq.midrange.com/data/cache/379.html Ive followed the instructions and can get perl running from the PASE terminal (Call QP2TERM), but don't seem to be able to call perl scripts from an apache webserver instance I created a hello.pl script in htdocs, but when I try to access it I get a 500 error, and the following in the server error log: ZSRV_MSG0107: Premature end of script headers: File name is paseweb CGI PROGRAM /QOpenSys/perl/webwrap/paseweb RETURNED AN EXCEPTION SEE JOBLOG FOR JOB 719327/QTMHHTTP/BERTDEMOB This is the contents of the paseweb script #!/QOpenSys/perl/bin/perl exec ¢ENV{PATH_TRANSLATED}; print "Content-Type: text/html;\r\n\r\n"; print "Error running CGI"; The other message that is appearing in the joblog for the webserver CGI job is: CPDB9C1 Diagnostic 30 14/03/05 12:47:49.978776 QP2USER QSYS *STMT QZSRCGI QHTTPSVR *STMT From module . . . . . . . . : QP2EXERR From procedure . . . . . . : sendmsg__FPCcN21e Statement . . . . . . . . . : 188 To module . . . . . . . . . : ZSRVCGI To procedure . . . . . . . : CGICall Statement . . . . . . . . . : 249 Message . . . . : Cannot load OS/400 PASE module /QOpenSys/perl/webwrap/paseweb. Cause . . . . . : The stream file for OS/400 PASE module /QOpenSys/perl/webwrap/paseweb may not exist, or you may not have sufficient authority to load from it. You must have read authority to load an OS/400 PASE shared object, or read and execute authority to load an OS/400 PASE program. The error occurred attempting to load OS/400 PASE program /QOpenSys/perl/webwrap/paseweb. Recovery . . . : Correct the error and then try the request again. But ive checked authorities and they seem to be OK Cheers Colin.W -- This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/web400 or email: WEB400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/web400. This e-mail has been sent by a company of Bertram Group Ltd, whose registered office is 1 Broadland Business Park, Norwich, NR7 0WF. This message, and any attachments, are intended solely for the addressee and may contain privileged or confidential information. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please contact the sender immediately. Opinions, conclusions and statements of intent in this e-mail are those of the sender and will not bind a Bertram Group Ltd company unless confirmed in writing by a director independently of this message. Although we have taken steps to ensure that this email and any attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.
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.