Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: PHP5 and Oracle 10g
On Fri, 16 Dec 2005 22:43:01 -0500, PHPguy wrote:
> > > Mladen Gogala wrote:
>>>Which ones would they be since sqlplus and tnsping are working.
> > > > PHP Logo > PHP Version 5.1.1 >
OK. Everything looks right, except register_globals, but that has nothing to do with the problem. There is one catch with Oracle 10.2 that is probably causing your problem: the user "nobody", used to spawn httpd processes probably doesn't have access to $ORACLE_HOME directory and its subdirectories, the $TNS_ADMIN directory in particular. You should fix protection on all subdirectories of $ORACLE_BASE needed to reach the $TNS_ADMIN and $ORACLE_HOME/lib. Alternatively, although I would advise against it, you could do something like: find $ORACLE_BASE -type d -exec chmod o=+rx {} \;
I had that magic problem with Oracle 10.2 and I couldn't connect until I haven't had my protections fixed. I had to truss the httpd processes and see what's happening as it looked like a bad black magic. Simple chmod fixed the problem.
Now back to register_globals: I'm sure you're aware of the fact that the general security advice is to turn this off as it can be used for injection type attacks?
-- http://www.mgogala.comReceived on Sat Dec 17 2005 - 01:05:56 CST
![]() |
![]() |