http://publib.boulder.ibm.com/infocenter/tivihelp/v2r1/index.jsp?topic=/com.
ibm.itame3.doc_5.1/am51_perftune113.htm

" It is a good idea to unset the LDR_CNTRL environment variable, so that it
does not unintentionally affect other processes. "

Regards,

----------------------------------------
Glen Batchelor
IT Director/CIO/CTO
All-Spec Industries
 phone: (910) 332-0424
   fax: (910) 763-5664
E-mail: webmas...@all-spec.com
   Web: http://www.all-spec.com
  Blog: http://blog.all-spec.com
----------------------------------------

> -----Original Message-----
> From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
> boun...@listserver.u2ug.org] On Behalf Of John Thompson
> Sent: Friday, May 06, 2011 2:46 PM
> To: U2 Users List
> Subject: Re: [U2] Error 4 22 from PHP exec of uv on AIX
> 
> Thanks for all of your replies.
> Thanks to Bob Woodward for the shell environment idea.
> Thanks to Kevin King for his help.
> 
> Apache sets extra environment variables when compared to the shell of a
> regular user.
> 
> One of these environment variables is called:
> LDR_CNTRL
> Apparently it has something to do with the way AIX handles the memory
> space.
> See:
> 
> http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/index.jsp?topic=/com
> .ibm.java.doc.user.aix32.60/user/aix_ldr_cntrl_page_sizes.html
> 
> Apache seems to set the following when it starts a session:
> 
> LDR_CNTRL=MAXDATA=0x80000000
> 
> If you set this to "null" in a php script, then Universe will run just
> fine.
> 
> Anyone have any ideas on the proper use of LDR_CNTRL?
> 
> 
> 
> 
> 
> 
> On Fri, May 6, 2011 at 1:06 PM, George Gallen
> <ggal...@wyanokegroup.com>wrote:
> 
> > this sounds like a permissions issue.
> >
> > probably, the user that apache is running under doesn't have the
> > permissions
> > to execute the uv program in .../uv/bin
> >
> > George
> >
> > > -----Original Message-----
> > > From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
> > > boun...@listserver.u2ug.org] On Behalf Of John Thompson
> > > Sent: Friday, May 06, 2011 11:57 AM
> > > To: u2-users@listserver.u2ug.org
> > > Subject: [U2] Error 4 22 from PHP exec of uv on AIX
> > >
> > > I thought I would resurrect an old issue I found on the mailing
> list...
> > >
> > > As I am not a mailing list junky (google and web forums have spoiled
> > > me),
> > > I'm not entirely sure how to reply directly to the old post...
> > >
> > > Original Post ----------------
> > > From:
> > >
> > > Ross Morrissey
> > > Fri, 24 Jul 2009 14:11:56 -0700
> > >
> > > This is a bit of a stumper (for me, anyway).
> > >
> > > I'm having issues trying to exec uv from PHP on AIX.
> > >
> > > Things work just fine in Windows (Apache or IIS) or Linux (Apache) so
> I
> > > know
> > > my PHP syntax is fine.
> > >
> > > On the AIX (5.2 uv 10.2.7) box:
> > >
> > > Using PHP, I can exec 'echo 1 + 2 | bc' and get 3
> > > I can run this at the shell as user nobody: 'cd /u2/uv/HS.SALES;
> > > /u2/uv/bin/uv "display 42"'
> > > I can get a CGI script to return 'cd /u2/uv/HS.SALES; /u2/uv/bin/uv
> > > "display
> > > 42"' correctly
> > >
> > > With PHP, I can't exec ' /u2/uv/bin/uv "display 42"' (after a chdir).
> > >
> > > UV throws this error (into the Apache logs):
> > >
> > > An error has occurred during uniVerse initialization
> > > Please contact the system administrator Error code: 4 22
> > >
> > > The codes translate into:
> > >
> > > 4. System V semaphores are probably not configured in the kernel.
> > >
> > > 22. (EINVAL) Invalid argument. Here are some examples of invalid
> > > arguments: dismounting a nonmounted device, mentioning an unknown
> > > signal in signal, reading or writing a file for which seek has
> > > generated a
> > > negative pointer. EINVAL is also set by math functions.
> > >
> > > Has anyone else bumped into this?  IBM support suggested it might be
> an
> > > issue with SIGTTOU but this seems unlikely to me - especially for a
> > > one-line
> > > command.  PHP is a bit outside their bailiwick.
> > >
> > > Thanks, Ross.
> > >
> > > End of Original Post --------------------
> > >
> > >
> > > I am having the exact same problem.  I have tried using nohup before
> > > called universe.
> > >
> > > There is something about when apache calls the php script, then the
> > > php script executing universe, that universe does not like...
> > >
> > > Anyone ever figure out a way around this?
> > >
> > >
> > > --
> > > John Thompson
> > > _______________________________________________
> > > U2-Users mailing list
> > > U2-Users@listserver.u2ug.org
> > > http://listserver.u2ug.org/mailman/listinfo/u2-users
> > _______________________________________________
> > U2-Users mailing list
> > U2-Users@listserver.u2ug.org
> > http://listserver.u2ug.org/mailman/listinfo/u2-users
> >
> 
> 
> 
> --
> John Thompson
> _______________________________________________
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to