Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46925 - Apache2 Startscript doesn't accept environment variables nor does it read /usr/lib/apache2/build/envvars
Summary: Apache2 Startscript doesn't accept environment variables nor does it read /us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-06 00:44 UTC by Eugen Neu
Modified: 2004-12-27 08:26 UTC (History)
2 users (show)

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


Attachments
Patch for Apache2 init script, to use environement variables. (apache2.diff,846 bytes, patch)
2004-04-06 02:48 UTC, Minati jean michel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.