Re: dynamic lib ignored even after "found" in "install_driver(Oracle) failed: Can't load..." cgi problem



thanks for the input tim (and charles),

i have checked all the permissions, and these should be fine for access by the apache user. and when i ran as myself (not root), the command line execution did fine, too.

-rwxrwxr-x 1 root root 18825267 Nov 15 2006 /usr/local/instantclient_10_2/libclntsh.so.10.1
drwxr-xr-x 4 root root 4096 Aug 30 16:56 /usr/local/instantclient_10_2/
drwxr-xr-x 20 root root 4096 Aug 30 17:26 /usr/local
drwxr-xr-x 15 root root 4096 Jun 14 18:03 /usr
drwxr-xr-x 23 root root 4096 Aug 27 14:38 /

i will try the strace and see what i can see...

thanks again,

bruce


Tim Kirby wrote:
On 8/30/07 4:51 PM, "Bruce Sears" <bsears@xxxxxxxxxxxxxxxxx> wrote:

thanks for bearing with this. it's too much detail, but perhaps not
enough (sigh).

Just glancing at this before retiring for the night; someone else will
probably give you a real answer, but two things come to mind/might be
worth looking at/whatever...

(1) have you verified permissions for the library in question for whatever
user the CGI is running as? I know the error didn't say permission
denied, but you never know...

(2) I would feel inclined to run the web server under strace, feeding the
output to a file somewhere (make sure you're following children) and
run your test case. There you will see the actual system calls that
are being invoked and you should see a 'stat' and a real errno as to
why it didn't open the library when it should have done. The trouble
with debug aids of the kind you're using is it really depends on the
people who wrote the debug code to have done the right thing everywhere.

Color me cynical.

So, there's my $0.02 FWIW. I may be in lala land, but that's what I would
be looking at assuming I didn't misread what you posted.

Good luck

Tim



Relevant Pages

  • Re: permission in apache
    ... > This shouldn't have anything to do with UNIX permissions. ... and permissions on that file in the DocumentRoot were such that it can't ... up the directory tree are set so that the apache user can't read files ... user falls into) cannot read files under that directory tree. ...
    (freebsd-questions)
  • Re: [PHP] SESSION Not behaving II: permission denied(13)
    ... >>I've written my login script and is now getting the following error. ... You can modify its permissions so that the apache user and/or group ... so that ony the apache user and root will be able ...
    (php.general)
  • Re: permission in apache
    ... >> This shouldn't have anything to do with UNIX permissions. ... > be accessed by the apache user. ... > user falls into) cannot read files under that directory tree. ...
    (freebsd-questions)
  • Re: dynamic lib ignored even after "found" in "install_driver(Oracle) failed: Cant load..." cgi prob
    ... it looks to me like apache SHOULD have read access to this file, ... am i missing some sort of configuration detail regarding apache and permissions granted a cgi? ... do i really have to move all my libraries into /lib ... i have checked all the permissions, and these should be fine for access by the apache user. ...
    (perl.dbi.users)