http://qs1969.pair.com?node_id=82367


in reply to mod_perl losing/confusing file paths?

Are you trying to use the "automatic reload" of changed modules - Apache::Reload or Apache::StatINC or something similiar. If so I think you need to make sure that the directory is in @INC (I can see /apache/lib/perl but I don't know if that is what you are using). Perhaps you could reply and let us know what you have added to httpd.conf to get mod_perl working.
  • Comment on Re: mod_perl losing/confusing file paths?

Replies are listed 'Best First'.
Re: Re: mod_perl losing/confusing file paths?
by MrCromeDome (Deacon) on May 22, 2001 at 23:56 UTC
    My httpd.conf file (the applicable parts anyhow) looks like this:
    LoadModule perl_module modules/mod_perl.so PerlModule Apache::Registry PerlModule Apache::DBI Alias /perl/ d:/www/perl/ <Location /perl> SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI PerlSendHeader on allow from all </Location>
    I haven't done anything special with Apache::Reload, etc. I just copied my CGIs over and tried to run them.

    Hope this helps. Thank you!

      This looks o.k. but is your perl directory in @INC? if not you can add it in the startup script (startup.pl)
      use lib qw(/home/httpd/perl); # for example
      I don't really know why this works but it did for me. Also you can start up Apache with a single server process -XI think which would be worth trying to see if you still get the problem.