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



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


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.