Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32364 - Bug 30161 resolution causes oracle oci8 to fail
Summary: Bug 30161 resolution causes oracle oci8 to fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
: 32799 (view as bug list)
Depends on: 30161
Blocks:
  Show dependency tree
 
Reported: 2003-10-31 00:39 UTC by Gerald Tan
Modified: 2004-05-14 08:15 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Tan 2003-10-31 00:39:20 UTC
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:
Comment 1 Donny Davies (RETIRED) gentoo-dev 2003-10-31 07:20:52 UTC
Now we're going to have to be whitelisting acceptable env variables in the
Apache initscripts :\
Comment 2 Donny Davies (RETIRED) gentoo-dev 2003-11-04 10:20:28 UTC
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?
Comment 3 Don Seiler (RETIRED) gentoo-dev 2003-11-13 13:50:05 UTC
*** Bug 32799 has been marked as a duplicate of this bug. ***
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-12-03 02:37:39 UTC
whitelist like that sounds good to me.
Comment 5 Rene Androsch 2004-02-22 09:38:47 UTC
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 :(
Comment 6 Stuart Herbert (RETIRED) gentoo-dev 2004-02-22 14:27:33 UTC
Agreed - the whitelist sounds like a good idea.

Stu
Comment 7 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 01:31:57 UTC
Re-assigning to the apache team
Comment 8 Chuck Short (RETIRED) gentoo-dev 2004-05-14 08:15:52 UTC
Fixed in cvs, thanks for the bug report. Please see changelog on how to do it now.