PHP needs to read the ORACLE_HOME environment variable to connect to Oracle databases. With the resolution of Bug 30161, apache-2.0.48 uses env -i in /etc/init.d/apache2 to run the daemon, breaking PHP's capability to connect to Oracle DBs. To fix: change "env -i" to "env -i ORACLE_HOME=$ORACLE_HOME" if the "oci8" use flag is enabled. Reproducible: Always Steps to Reproduce:
Now we're going to have to be whitelisting acceptable env variables in the Apache initscripts :\
Maybe we should add an APACHE_WHITELIST_ENV_VARS or something to /etc/conf.d/apache, and populate the acceptable things in there, and plug those in inside the initscript. I think thats better than adding everything to the initscript itself. Stu/Robin that cool?
*** Bug 32799 has been marked as a duplicate of this bug. ***
whitelist like that sounds good to me.
Please help me! I need to get lastest PHP (in apache2) working with Oracle 10g, which is already installed and running. But the make of php clams not finding the oracle libraries :(
Agreed - the whitelist sounds like a good idea. Stu
Re-assigning to the apache team
Fixed in cvs, thanks for the bug report. Please see changelog on how to do it now.