Re: statINC or startINC ??

2002-03-01 Thread Brett W. McCoy

On Fri, 1 Mar 2002, Dermot Paikkos wrote:

 So I guess I need to know how to make the PERL5LIB variable
 available to Apache from its first initialisation (would that be the
 startuppl or the UID of the httpd process?) I also need to make sure
 that this is variable persists

PerlSetVar PERL5LIB path

should accomplish this

You can also do

use lib 'path';

in your scripts to have them search the correct path to modules that
aren't in INC  I also use Apache::Reload  See the appropriate
documentation (it talks about using Apache::Reload as a drop-in for
StatINC)

-- Brett
  http://wwwchapelperilousnet/

My mother wants grandchildren, so I said, Mom, go for it!
-- Sue Murphy





Re: statINC or startINC ??

2002-03-01 Thread David Wright

Hi Dermot,

 I'm a completely newbie and have a problem with your installation I
 think my problems are mainly to do with environment variables,
 specifically INC The error log has the following:

  Undefined subroutine Apache::startINC::handler called

 I have a statINC at not a startINC So I modified the httpdconf
 accordingly However I still get:

   Undefined subroutine Apache::statINC::handler called

Have you tried Apache::StatINC? - note the case

If you can do 'perl -MApache::StatINC -e 42' on the command line without
any errors, then

PerlInitHandler Apache::StatINC

in your httpdconf should be fine as well

 As I don't know how to manually change INC, I have added the
 paths to the PERL5LIB env variable (in my cshrc) but this does not
 take effect till I log in So the server does not start unless I am
 logged in and start it manually as it can not find statINCpm Even
 then http requests generate the above error

perldoc -f use

If you have a set of custom modules that you need Apache to find,
something like:

Perl
use lib '/directory/root/of/your/modules' ;
/Perl

in your conf should work


david wright