In article <c1**********@reader1.imaginet.fr>, Seb wrote:
I've set $ORACLE_HOME in httpd.conf, php.ini and in the script
itself with putenv. I've also made sure the webserver uid (apache)
has access to all files under $ORACLE_HOME. This all makes no difference.
It is not where where you should set it. $ORACLE_HOME should be set in
the startup script of apache either in /etc/init.d/apache (or else) or
in your apachectl script.
You can also set it in the .profile or .bashrc (or else) of the user who
start the apache process.
That should be better. It has nothing to do with httpd.conf or php.ini.
Seb
Seb
Thank you!
That did the trick!
I had ORACLE_HOME exported in /etc/profile but this wasn't read on starting
httpd using /sbin/service httpd restart (redhat 8.0).
I've now sourced it in /etc/init.d/httpd
I need to read up more clearly on when different files are read and not read
e.g. .bashrc /etc/profile and by what shells, then I won't have all this
messing around again.
Thanks very much for your help,
--
Ben F
Registered Linux user number 339435