Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 70745 invoked from network); 27 Mar 2010 11:58:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Mar 2010 11:58:40 -0000 Received: (qmail 99779 invoked by uid 500); 27 Mar 2010 11:58:40 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 99752 invoked by uid 500); 27 Mar 2010 11:58:40 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 99744 invoked by uid 99); 27 Mar 2010 11:58:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Mar 2010 11:58:40 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andrejvanderzee@gmail.com designates 74.125.83.173 as permitted sender) Received: from [74.125.83.173] (HELO mail-pv0-f173.google.com) (74.125.83.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Mar 2010 11:58:34 +0000 Received: by pvf33 with SMTP id 33so4989720pvf.18 for ; Sat, 27 Mar 2010 04:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=OZfdMj74ApKCTnk3xoChGIym1cf3KHKN2xtKdS+SYsg=; b=dDsNKIrmajhJrsTP2JHDXrsv3zk/XuYpdNiSroK2Jo6aVXmDOEVs7Aujsyubtx7tf8 rd4q4RvB37m0oCVhNl0p0x5KNIQM0Xc7IO4U5vz4Rr0cvX0vOvllBZojyX3XhgopCLAY AA0+/owTYP0UneNGdscmobFDPmiPv3bqpIr58= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=NO4Lrw1HmXGT4aNYS7oyvmoJYI2/t6iBY9/a9P7rFEg+Awn8mX+5KVEYbrY/EUQc65 YLj+XeLzL7oGRqkfF04Pdvw/2Eqce4mHCbjLqkgAlOaIp3GR/6txwdA9CB+IyEI3ZcL5 ZkPx+NGLEZopqaBbeZJRWwUMv+0lnGxH3HL78= MIME-Version: 1.0 Received: by 10.141.26.9 with HTTP; Sat, 27 Mar 2010 04:58:13 -0700 (PDT) In-Reply-To: <20170a031003270440i4268a57ck1bfc933fe8c31a31@mail.gmail.com> References: <6456355d1003262036s1ec5c375r41c175a6d7738d6f@mail.gmail.com> <4BADD96C.8060002@rowe-clan.net> <6456355d1003270334h4beac191p6f1a71abfba226f0@mail.gmail.com> <4BADE11E.3090808@gmail.com> <6456355d1003270345l47e6900ekb4ed92bf8ba87e72@mail.gmail.com> <6456355d1003270428n94c97cdx60c4ffa0f0755e17@mail.gmail.com> <20170a031003270440i4268a57ck1bfc933fe8c31a31@mail.gmail.com> Date: Sat, 27 Mar 2010 20:58:13 +0900 Received: by 10.141.101.19 with SMTP id d19mr2187668rvm.154.1269691093804; Sat, 27 Mar 2010 04:58:13 -0700 (PDT) Message-ID: <6456355d1003270458n379512a1ja5d1d9f2dd8a8ac5@mail.gmail.com> Subject: Re: LD_PRELOAD for modules From: Andrej van der Zee To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hi Sorin, > > In the Debian package of apache there's /etc/apache2/envvars. I'm not > sure if this file appears in an out-of-the-box compilation of apache2. > Anyway, /usr/sbin/apache2ctl looks for it and loads it before > launching the server. > > The server in launched in the environment that is set in envvars. > > So you could try writing > > export LD_PRELOAD=... > > in envvars. > > I do not know if this has an effect on how apache2 spawns the CGI > applications but you might give it a try. Thank you for putting me back on track! I found the solution I think. >From the Apache documentation: SetEnv directive Syntax: SetEnv env-variable value Context: server config, virtual host, directory, .htaccess Override: FileInfo Status: Base Module: mod_env Compatibility: SetEnv is only available in Apache 1.1 and later. Directory and .htaccess context is available in Apache 1.3.7 and later. Sets an environment variable, which is then passed on to CGI scripts and SSI pages. Example: SetEnv SPECIAL_PATH /foo/bin