Permissions, perhaps?

Running it using syscalls might provide some clues.

Best regards,

Henry

Henry P. Unger
Hitech Systems, Inc.
http://www.hitech.com

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Ross Morrissey
Sent: Friday, July 24, 2009 2:12 PM
To: [email protected]
Subject: [U2] Error 4 22 from PHP exec of uv on AIX

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.
_______________________________________________
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

Reply via email to