Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Overriding the registry's PERL5LIB in mod_perl on Win32

by perrin (Chancellor)
on May 21, 2009 at 17:18 UTC ( #765510=note: print w/replies, xml ) Need Help??


in reply to Re^2: Overriding the registry's PERL5LIB in mod_perl on Win32
in thread Overriding the registry's PERL5LIB in mod_perl on Win32

I have no idea how it works on Windows, but on Linux all you need to do to set PERL5LIB is put it on the command-line when you start apache: PERL5LIB=/my/path apachectl start

Replies are listed 'Best First'.
Re^4: Overriding the registry's PERL5LIB in mod_perl on Win32
by shay (Beadle) on May 22, 2009 at 08:02 UTC
    On Win32 Apache is run as a service. The command-line to run is specified in the registry under

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache2.2

    In my case this is:

    "C:\apache2.2\bin\httpd.exe" -k runservice

    It isn't as simple as just changing that to something like:

    set PERL5LIB=C:\perl\lib;C:\perl\site\lib && "C:\apache2.2\bin\httpd.exe" -k runservice

    but possibly some kind of wrapper program could be worked in there which sets PERL5LIB and then runs the service.

    I think I'm going to settle for just removing the registry lookup from my perl build, though.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2019-12-07 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (160 votes). Check out past polls.

    Notices?