Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: mod_perl losing/confusing file paths?

by Odud (Pilgrim)
on May 22, 2001 at 23:48 UTC ( [id://82367]=note: print w/replies, xml ) Need Help??


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.

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://82367]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found