> >
> > I realized that $ENV{PATH} isn't set anymore under mod_perl 2.0.
>
> it will only be set if you configure SetHandler perl-script, which calls
> ap_add_common_vars, which does:
>     if (!(env_path = getenv("PATH"))) {
> env_path = DEFAULT_PATH;
>     }
>     apr_table_addn(e, "PATH", apr_pstrdup(r->pool, env_path));
>
> then r->subprocess_env is copied to %ENV.
>
> so unless are using the SetHandler perl-script, this is expected.
>

my problem arises in the startup.pl, which does a

require Cwd ;

which complains about an undefined $ENV{PATH}. Would it make sense to copy
the above code to modperl_env_configure_server, so it's also available at
startup?

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to