It's set as the result of the reference specifically to the directory
request ie: "/iASPname/whatever/directory/you /want. But only for the
IFS access at that point.

--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Vernon
Hamberg
Sent: Wednesday, August 27, 2014 8:44 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] using zendserver toolkit

I don't know what is being issued - yes, the IASP has to be active first, as
for anything using an IASP. But varying on the IASP does not, as you know,
make it available in a job - it doesn't add the IASP resources to the name
space.

All I know is, the job log of the CGI job showed a message that the ASP
group was set - and that I did no programming to make that happen - so
Apache did it, right at the beginning of the CGI job.

I do not remember looking at what program issued the message, I was just
happy to see it there - and in truth quite surprised.

Check with Tim Rowe if you have more questions - I got this working after
talking to the team there, and there were customers who did this, and it was
easy.

To me that was the proof in the pudding - now as to PHP, I'm not sure - but
I think maybe a <directory> directive might do it - not sure if Mike Pavlak
or the other IBM i Zend folks have ever tried this, but they'd be the ones
to check with, as well.

Vern

On 8/27/2014 8:25 AM, Jim Oberholtzer wrote:
I don't think the SETASPGRP is being issued. The iASP needs to be
available first, then based on the directory you cite below it directs
the RJSIMAGE.LIB to the iASP since it's in the path.

If you start Apache before the iASP is up it will fail.

--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Vernon
Hamberg
Sent: Wednesday, August 27, 2014 7:53 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] using zendserver toolkit

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 CHGASPGRP
command?
I think what was happening is the relational database entry for the
iASP database was used to do the SQL connect to the database. I
could be wrong 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 do it with. I know the Zend Server
won't do it automatically (unless Zend put 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
necessary to change any JOBDs - it is not required when using an
Apache instance by itself. The httpd.conf file can contain a
directory directive that merely names the directory or library that
is in the IASP, and the Apache server automatically does a CHGASPGRP.

Whether this happens with Zend, I don't know. It might be worth it,
though, to add a container section in your httpd.conf file that
specifies the IASP directory in question something like
/IASP02/yourfolder.
I did this when working at RJS Software, with a regular Apache
instance, to demonstrate that one of their products works in IASPs.
It was magical
- 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!

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,
subsystem,
memory pool used etc. by individual Apache instance. In V7R1, I've had
to
resort to using a routing program for QHTTPSVR subsystem to control
that.
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
instance.
WARNING: If the iASP is not up and running by the time you start
the web server after this change, the web server will die, and not
tell you
why.
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
am
trying 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-performanc
e
-
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
don't
see any samples at all. Nothing is in zendsvr6/htdocs except
index.html,
dummy.php, and two Zend5250 directories. Also, i get a "class not
found"
message for $ToolkitServiceObj = ToolkitService::getInstance($db,
$user,
$pass);

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:

https://www.zend.com/en/user/login?redirect=/en/webinars/recorded/sh
o
w
/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 you?

Hands On Workshops:
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...

http://files.zend.com/help/Zend-Server-6.3-IBMi/zend-server.htm#php_
t
o
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 going
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
that
tell me how to do simple stuff like calling an RPG program. Can
someone
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, 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.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.