Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Which Win32 distribution of Perl should I use: ActiveState, Strawberry, or both?

by Lady_Aleena (Deacon)
on Apr 11, 2010 at 21:51 UTC ( #834147=note: print w/ replies, xml ) Need Help??


in reply to Re: Which Win32 distribution of Perl should I use: ActiveState, Strawberry, or both?
in thread Which Win32 distribution of Perl should I use: ActiveState, Strawberry, or both?

I need accurate shebang lines for my scripts to properly load in a browser. Without a shebang or a bad shebang, I get an internal server error when I go to load the script.

Have a nice day!
Lady Aleena


Comment on Re^2: Which Win32 distribution of Perl should I use: ActiveState, Strawberry, or both?
Download Code
Re^3: Which Win32 distribution of Perl should I use: ActiveState, Strawberry, or both?
by BrowserUk (Pope) on Apr 11, 2010 at 22:05 UTC

    Ah! In that case, I'd use Junction to create a symlink that points your current shebang line at the new location of whichever perl installation you want to use with Apache.

    This has the added advantage that you can switch between installations, or to a new installation, at any time, using a single command.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^3: Which Win32 distribution of Perl should I use: ActiveState, Strawberry, or both?
by PeterPeiGuo (Hermit) on Apr 11, 2010 at 22:17 UTC

    That is just fine. It's the common practice to have that shebang for Apache.

    Peter (Guo) Pei

Re^3: Which Win32 distribution of Perl should I use: ActiveState, Strawberry, or both?
by rubasov (Friar) on Apr 11, 2010 at 23:18 UTC
    I have never used Apache on Windows, but if I recall right what I've read, Apache can be set up to ignore the shebang and use the registry instead to find the interpreter. That way you can omit the shebang or even better use a Unix-compatible shebang. If you do that Windows, Apache on Windows and Unices all will be happy with your scripts without any change in the shebang line. So for example you can upload your scripts to a standard Linux hosting without change (if the other parts are already portable).

    Have a look at the ScriptInterpreterSource Apache configuration directive.

    Probably you also need to set the corresponding registry key if it does not exist already.

    I hope this helps.

      That hit the spot in getting my scripts loaded into my browser. Thanks!

      Have a nice day!
      Lady Aleena

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2014-12-21 21:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (108 votes), past polls