Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 46925

Summary: Apache2 Startscript doesn't accept environment variables nor does it read /usr/lib/apache2/build/envvars
Product: Gentoo Linux Reporter: Eugen Neu <neu-gentoo>
Component: [OLD] ServerAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: bugs.gentoo.org, magnet
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for Apache2 init script, to use environement variables.

Description Eugen Neu 2004-04-06 00:44:49 UTC
Hi,
I have to connect to a Oracle Database through Apache/PHP.  To do so I have to set some environmet variables.  In the start() function (/etc/init.d/apache2) you start the daemon in an empty environment (env -i) and don't read /usr/lib/apache2/build/envvars after that.  I haven't found another place where I can change the env for apache2. When you search google for setting env in apache2, it mostly points to envvars. I think it would be a good idea to consider this.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Minati jean michel 2004-04-06 02:48:19 UTC
Created attachment 28776 [details, diff]
Patch for Apache2 init script, to use environement variables.

This small patch is for /etc/init.d/apache, it allow to use /etc/env.d/apache
to store  environement variables.
I don't know if it's the right thing to do.but it sounds ok to me.
Comment 2 Chuck Short (RETIRED) gentoo-dev 2004-05-14 08:14:42 UTC
Fixed in cvs, please see changelog.