Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80742 - Include LD_LIBRARY_PATH in apache2 startup script
Summary: Include LD_LIBRARY_PATH in apache2 startup script
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-04 09:52 UTC by David 'Bombe' Roden
Modified: 2005-03-13 20:33 UTC (History)
0 users

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 David 'Bombe' Roden 2005-02-04 09:52:58 UTC
When creating the new environment for the apache to start in the LD_LIBRARY_PATH env var should be contained in it. That enables one to put additional paths in LD_LIBRARY_PATH in /etc/conf.d/apache2 that will be honored when starting apache, thus enabling e.g. the Java support in PHP.

Reproducible: Always
Steps to Reproduce:




Patch for /etc/init.d/apache2:

--- apache2~    2005-02-04 18:51:49.874117256 +0100
+++ apache2     2005-02-04 18:51:34.523450912 +0100
@@ -58,7 +58,7 @@
        ebegin "Starting apache2"
        [ -f /var/log/apache2/ssl_scache ] && rm /var/log/apache2/ssl_scache
        [ -f /usr/lib/apache2/build/envvars ] && . /usr/lib/apache2/build/envvars
-       env -i PATH=$PATH /sbin/start-stop-daemon --quiet \
+       env -i PATH=$PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH
/sbin/start-stop-daemon --quiet \
                --start --startas /usr/sbin/apache2 \
                --pidfile ${PIDFILE} -- -k start ${APACHE2_OPTS}
        eend $?
Comment 1 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-03-13 20:33:18 UTC
If you want this functionality, you'll have to enable it yourself.  From a security stand-point at least, this should not be done by default.