Yep, the same behavior still happens.

The issue is:

On AIX 5.3 (Technology Level 9)
You can do the following:

-Call Universe from a php script from a shell.
So if I do:
php -f scriptname.php
The php script, is changing the directory and firing up universe.

Everything works fine from the shell.

-If I run that same script through the browser (i.e. Apache 2.2 on AIX),
then universe will crash with:

An error has occurred during uniVerse initialization
Please contact the system administrator
Error code:  4  22

Rocket's suggestion is to run it with nohup, which did NOT work.

Its not a permissions issue.  I made them wide open (777) as a test, and I
can call the php script from the shell of the user that Apache runs as, and
they work fine- Universe fires up and does its thing.

Universe does not get to the point to where it can even call the login proc.
 It crashes before it can even start.

On Fri, May 6, 2011 at 12:17 PM, Rex Gozar <[email protected]> wrote:

> Have you tried "&&" instead of ";" to separate the cd and uv commands?
>
> rex
>
> On Fri, May 6, 2011 at 11:56 AM, John Thompson <[email protected]>
> wrote:
> > 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
> > [email protected]
> > http://listserver.u2ug.org/mailman/listinfo/u2-users
> >
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
>



-- 
John Thompson
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to