|
Vern and Jim
Thanks for the helpful suggestions. To clarify, my issue is that my PHP
script calls an RPG program, If the program, or any of the files used by
the program, is in a library in the iASP, then it does not work. I tried
getting around this by having script call a CL program to do a SETASPGRP
and then have that program call my RPG program, but I get a message in the
job log that says that a SETASPGRP can not be run from a system program. I
have not yet tried doing a SETASPGRP directly from the PHP script, but I
suspect that the same thing will happen.
I'd like to follow up on both of your suggestions. Jim - can you send me
a sample of the routing program that you mentioned. Vern - can you give
me some more details about how you changed the apache config file to make
this happen automatically.
Thanks to both of you!
Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
From: Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxx>,
Date: 08/27/2014 08:51 AM
Subject: Re: [WEB400] using zendserver toolkit
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxx>
Hi Jim
Apache has executed the SETASPGRP command (apologies for misspelling the
command as CHGASPGRP) - or maybe something like it - since IASP support
came out in V5R2 - I saw this behavior when I put the RJS WebDocs
product library into an IASP. Now this was for CGI stuff, so I can't
speak to other areas.
What it took was a couple directives that simply used the IFS path to
the library through the IASP directory, as here -
<Directory /IASP01/QSYS.LIB/RJSIMAGE.LIB/>
There was also a <ScriptAliasMatch> for the CGI program, which also
required the /IASP01 (or whatever directory was used for the IASP) in
the path name of the program.
That's all it took - and in the job log for the CGI connection, there
was a message that said the ASP group was changed - no user programming
needed at all.
HTH
Vern
On 8/27/2014 7:05 AM, Jim Oberholtzer wrote:
How/where is Apache going to be smart enough to issue a CHGASPGRPcommand?
I think what was happening is the relational database entry for the iASPwrong
database was used to do the SQL connect to the database. I could be
but I'll bet a round of drinks at COMMON Fall conference that Apache(V7R1)
cannot do a CHGASPGRP "automatically", without some customer code to doit
with. I know the Zend Server won't do it automatically (unless Zend putnecessary to
that into version 7 but I highly doubt it's there).
BTW: I would not want Apache to do a CHGASPGRP without some sort of
directive telling it to.....
V7R2 is a different discussion but I think this is all V7R1.
--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Vernon
Hamberg
Sent: Tuesday, August 26, 2014 2:23 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] using zendserver toolkit
Someone at Zend would have to confirm this, but it might not be
change any JOBDs - it is not required when using an Apache instance bymerely
itself. The httpd.conf file can contain a directory directive that
names the directory or library that is in the IASP, and the Apacheserver
automatically does a CHGASPGRP.though,
Whether this happens with Zend, I don't know. It might be worth it,
to add a container section in your httpd.conf file that specifies theIASP
directory in question something like /IASP02/yourfolder.to
I did this when working at RJS Software, with a regular Apache instance,
demonstrate that one of their products works in IASPs. It was magicalhad
- not well-documented, as I recall, although one COULD ferret out the
details by combining info from a couple places.
HTH
Vern
On 8/26/2014 1:52 PM, Larry Kleinman wrote:
geesh, what a pain in the snoot!subsystem,
i'm scared to death to change the apache jobd. i might just put
everything i need into SYSBASE instead.
however, i'm not afraid of routing programs. how did you do something
that only affects the apache server for zend?
Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
From: "Jim Oberholtzer" <midrangel@xxxxxxxxxxxxxxxxx>
To: "'Web Enabling the IBM i \(AS/400 and iSeries\)'"
<web400@xxxxxxxxxxxx>,
Date: 08/26/2014 02:47 PM
Subject: Re: [WEB400] using zendserver toolkit
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxx>
The job description for the Zend apache instance defaults to :
QHTTPSVR/QZHBHTTP.
The job description for the Zend Server defaults to: ZENDSVR/ZSVR_JOBD.
The Zend job description is not a big deal to change, but, be really
careful with the IBM default QZHBHTTP. That change could break
things.
At V7R2 you can determine the entire work management environment from
the httpd.conf file. So now you can customize the job description,
memory pool used etc. by individual Apache instance. In V7R1, I've
that.to
resort to using a routing program for QHTTPSVR subsystem to control
instance.I don't think there is any plan to PTF the work management changes to
V7R1 but it would be cool if it happened.
--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Larry
Kleinman
Sent: Tuesday, August 26, 2014 1:37 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Cc: WEB400
Subject: Re: [WEB400] using zendserver toolkit
I agree, What is the JOBD used by Zend and by the Apache server?
Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
From: "Jim Oberholtzer" <midrangel@xxxxxxxxxxxxxxxxx>
To: "'Web Enabling the IBM i \(AS/400 and iSeries\)'"
<web400@xxxxxxxxxxxx>,
Date: 08/26/2014 02:34 PM
Subject: Re: [WEB400] using zendserver toolkit
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxx>
It likely is not. The user that runs the web server needs the iASP in
its job.
Check out the job description used by Zend Server and the Apache
amWARNING: If the iASP is not up and running by the time you start thewhy.
web server after this change, the web server will die, and not tell you
Took me 2 days of head scratching to figure that one out.
--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Larry
Kleinman
Sent: Tuesday, August 26, 2014 1:31 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Cc: WEB400
Subject: Re: [WEB400] using zendserer toolkit
An update - the problem is related to the fact that the library that I
don'ttrying to access is in an IASP. The user profile with which I am
connecting has a JOBD that specifies that IASP, but is this the JOBD
under which the job is actually running?
Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
From: Alan Seiden <alan@xxxxxxxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxx>,
Cc: WEB400 <web400-bounces@xxxxxxxxxxxx>
Date: 08/26/2014 01:06 PM
Subject: Re: [WEB400] using zendserer toolkit
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxx>
Larry, here's a sample that might get you started. I am providing this
one because it's complete, has error checking on the connect, and has
the "require_once" statement that you are probably missing now. Remove
the references to procedures/functions/return variables if they don't
apply to your program.
http://www.alanseiden.com/2012/12/27/service-program-procedures-with-p
hp-too
lkit-for-ibm-i/
Best,
Alan
--
*Alan Seiden Consulting LLC*
PHP for IBM i expertise and advocacy
*Learn high-performance PHP on IBM i:*
* Let your Apps Fly with PHP on IBM i
<
http://iprodeveloper.com/let-your-php-apps-fly-ibm-i-high-performance-
php-de
mand?promo=WP003XOE
Project leader, Zend PHP Toolkit for IBM i Zend Framework certified
contributor
Office: 201-447-2437 Cell: 201-248-4704 http://www.alanseiden.com |
alan@xxxxxxxxxxxxxx http://twitter.com/alanseiden
Larry Kleinman wrote:
Thanks for the links. I am still having a problem. First off, I
you?see any samples at all. Nothing is in zendsvr6/htdocs exceptindex.html,
dummy.php, and two Zend5250 directories. Also, i get a "class notfound"
message for $ToolkitServiceObj = ToolkitService::getInstance($db,$user,
$pass);https://www.zend.com/en/user/login?redirect=/en/webinars/recorded/show
Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
From: Mike Pavlak<mike.p@xxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxx>,
Date: 08/25/2014 06:32 PM
Subject: Re: [WEB400] using zendserer toolkit
Sent by: "WEB400"<web400-bounces@xxxxxxxxxxxx>
And here:
/293
_the+php+toolkit+from+zend+and+ibm
And here:https://github.com/zendtech/IbmiToolkit
And here:http://www.alanseiden.com/toolkit/
And more information available at the following events, maybe near
unsubscribe,--Hands On Workshops:http://files.zend.com/help/Zend-Server-6.3-IBMi/zend-server.htm#php_to
http://www.omniuser.org/TechConf2014Reg.html
http://systemideveloper.com/summit/conferences.html
http://www.data3.se/?page_id=2710
Presentations:
http://zendcon.com/
http://www.common.org/index.php/fall-conference-and-expo.html
Regards,
Mike Pavlak
Cell: (408)679-1011 Office: (708)233-5880
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Larry
Kleinman
Sent: Monday, August 25, 2014 3:16 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] using zendserer toolkit
Thanks. Just what I was looking for
Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
From: Michael Ryan<michaelrtr@xxxxxxxxx>
To: "Web Enabling the IBM i (AS/400 and iSeries)"
<web400@xxxxxxxxxxxx>,
Date: 08/25/2014 03:08 PM
Subject: Re: [WEB400] using zendserer toolkit
Sent by: "WEB400"<web400-bounces@xxxxxxxxxxxx>
And maybe this specifically for the Toolkit...
olki
t_xml_service_functions.htm--
On Mon, Aug 25, 2014 at 2:36 PM, Larry
Kleinman<larry@xxxxxxxxxxxxxxxxx>
wrote:
Hi - I have been using Zend Server for years but am finally goingthat
to switch from the i5_ functions to the tool kit that is part of the
basic software. I can not find the documentation anywhere on the
Zend site
tell me how to do simple stuff like calling an RPG program. Cansomeone
point that out to me?--
Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
--
This is the Web Enabling the IBM i (AS/400 and 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 is the Web Enabling the IBM i (AS/400 and 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 is the Web Enabling the IBM i (AS/400 and 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 is the Web Enabling the IBM i (AS/400 and 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 is the Web Enabling the IBM i (AS/400 and 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 is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxx To subscribe,
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.
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.