niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl » modules
mod_perl and access to the parent processes environment?
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Robert Nicholson
*nix forums beginner


Joined: 03 Mar 2005
Posts: 3

PostPosted: Wed Jul 19, 2006 8:41 pm    Post subject: mod_perl and access to the parent processes environment? Reply with quote

So how can I set up the environment prior to launching httpd so that
these values are available in <Perl> stanza's in httpd.conf?

It doesn't look like this is possible.

It looks like the only thing I can do is say

-Ddefinesomething

and then in httpd.conf

ifdefined definesomething
do something

but I need to do more than this.

I want to be able to pass information from the script that launches
httpd and have that information available within a <Perl> stanza.
Back to top
Big and Blue
*nix forums addict


Joined: 21 Feb 2005
Posts: 95

PostPosted: Thu Jul 20, 2006 12:09 am    Post subject: Re: mod_perl and access to the parent processes environment? Reply with quote

robert@elastica.com wrote:
Quote:
So how can I set up the environment prior to launching httpd so that
these values are available in <Perl> stanza's in httpd.conf?

Set an environment variable then access it via %ENV?

Quote:
I want to be able to pass information from the script that launches
httpd and have that information available within a <Perl> stanza.

You could also, of course, just include a file into httpd.conf which has
the relevant values set. If necessary this included file could be created
with the relevant values added in dynamically by the startup script.



--
Just because I've written it doesn't mean that
either you or I have to believe it.
Back to top
Mumia W.
*nix forums Guru Wannabe


Joined: 08 May 2006
Posts: 153

PostPosted: Thu Jul 20, 2006 11:23 am    Post subject: Re: mod_perl and access to the parent processes environment? Reply with quote

On 07/19/2006 07:09 PM, Big and Blue wrote:
Quote:
robert@elastica.com wrote:
So how can I set up the environment prior to launching
httpd so that these values are available in <Perl
stanza's in httpd.conf?

Set an environment variable then access it via %ENV?

I want to be able to pass information from the script
that launches httpd and have that information available
within a <Perl> stanza.

You could also, of course, just include a file into
httpd.conf which has the relevant values set. If necessary
this included file could be created with the relevant
values added in dynamically by the startup script.


That won't work out well because the server would have to be
restarted.

Robert, instead I suggest you modify an .htaccess file
instead. Htaccess files are re-read on each access. However, I
doubt you need to do this. Probably anything you can do in a
<Perl> section of an Apache config file can also be done in a
custom perl-handler.

HTH
Back to top
Big and Blue
*nix forums addict


Joined: 21 Feb 2005
Posts: 95

PostPosted: Thu Jul 20, 2006 11:22 pm    Post subject: Re: mod_perl and access to the parent processes environment? Reply with quote

Mumia W. wrote:
Quote:

That won't work out well because the server would have to be
restarted.

The original question was:

Quote:
So how can I set up the environment prior to launching
httpd.

"prior to launching" indicates to me that this is a one-off setting at
startup.

--
Just because I've written it doesn't mean that
either you or I have to believe it.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 8:58 pm | All times are GMT
navigation Forum index » Programming » Perl » modules
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts [554] Relay access denied annami Postfix 0 Tue Oct 21, 2008 9:12 am
No new posts [554] Relay access denied annami Postfix 0 Tue Oct 21, 2008 9:11 am
No new posts [554] Relay access denied annami Postfix 0 Tue Oct 21, 2008 9:10 am
No new posts User Environment - export PATH variable paalepu AIX 0 Tue Sep 12, 2006 8:12 pm
No new posts Removing db from environment mike.klaas@gmail.com Berkeley DB 0 Fri Jul 21, 2006 5:14 am

Internet Advertising | Auto Loans | Loans | Cheap Loan | Arizona Flags
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1843s ][ Queries: 16 (0.1009s) ][ GZIP on - Debug on ]