httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron W Morris <aaronmor...@mindspring.com>
Subject Re: [users@httpd] Environment Variables surviving log rotation HUP signal
Date Fri, 30 Apr 2004 17:39:06 GMT
Andy Harrison wrote:

> For reasons I won't bore you with, I had to install perl in a
> non-standard location.  I compiled mod_perl against this new location,
> but in order to make it truly happy, I had to add to the rc.d start
> script and the apachectl script the env var:
> 
> export PERL5LIB=/usr/local/rt3/perl/lib/site_perl/5.8.2/i386-freebsd
> 
> However, it does not seem to be lasting when logs are rotated and
> httpd is hup'ed.
> 
> If possible, just so there isn't yet-another-one-off, I'd like to keep
> log rotation in the current newsyslog.conf instead of installing a
> separate log rotation mechanism for Apache.  Is this possible?  I
> don't want this to be a global change because I don't want to affect
> the version of perl that is installed in a standard location.
> 

You would have to restart (kill and start) the httpd process in order 
for it to inherit new environment variables from the apachectl script.

If you want a HUP to set new variables, use the SetEnv directive.

ie
SetEnv PERL5LIB "/usr/local/rt3/perl/lib/site_perl/5.8.2/i386-freebsd"

-- 
Aaron W Morris <aaronmorris@mindspring.com> (decep)



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message