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

http://as400blog.blogspot
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 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.