PHP with Apache2 and Oracle 10g
Brian Long
brilong at cisco.com
Mon Dec 27 23:34:38 UTC 2004
> Other than that, the variables I set were:
> ORACLE_HOME /usr/oracle/product/10.1.0/Db_1
> ORACLE_SID currel
> LD_LIBRARY_PATH /usr/oracle/product/10.1.0/Db_1/lib
> LD_PRELOAD /usr/oracle/product/10.1.0/Db_1/lib/libclntsh.so.10.1
Are these variables set in your Apache startup script? We use a
file /etc/sysconfig/httpd which contains all our ORacle settings with
export ORACLE_HOME=/path/to/oracle
export ORACLE_SID=SID
etc.
Then /etc/init.d/httpd sources /etc/sysconfig/httpd before running
apachectl.
/Brian/
More information about the fedora-list
mailing list