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

500 Internal Server Error - Using ActiveState perl

by perleager (Pilgrim)
on Jan 07, 2004 at 04:13 UTC ( #319347=perlquestion: print w/replies, xml ) Need Help??
perleager has asked for the wisdom of the Perl Monks concerning the following question:

I'm using a windows machine and these scripts worked fine, but when I installed ActiveState Perl and tried changing the path to #!C:/perl58/bin/perl5.8.2 (active state perl 5.8), it gave me a Internal Server 500 error?

I also tried using -w, and -wT, but no luck?

Is there any basic newbie mistake I'm doing, such as not configuring something to work with ActiveState Perl?



---------------------------------- Updated:
Hey, after getting some help and researching, I found the answer to my problem.

If anyone has this type of situation you can go here and read How do I configure Microsoft IIS 4.0/IIS 5.0 to support ActivePerl?

Basically configuring your mappings/extentsions, you want to add %s %s to the end of the full perl path. :)

Once I did that, the 500 internal error problems went away and scripts seem to be working fine.

  • Comment on 500 Internal Server Error - Using ActiveState perl

Replies are listed 'Best First'.
Re: 500 Internal Server Error - Using ActiveState perl
by chromatic (Archbishop) on Jan 07, 2004 at 04:19 UTC

    Is the binary called perl5.8.2 or perl? What does the error log say?

Re: 500 Internal Server Error - Using ActiveState perl
by Roger (Parson) on Jan 07, 2004 at 04:23 UTC
    There are a few possibilities I can think of, the server log might tell you more...

    Possibility 1:
    Your Apache config has loadfile <previous_version_of_perl.dll>.

    Possibility 2:
    You haven't installed mod_perl for the newly installed Perl.

    Possibility 3:
    Need to specify the full path to the perl executable.
    #!C:/perl58/bin/perl.exe -w

      Thanks for the help -

      Where can I install the mod_perl? Will using the ActiveState Perl PPM work? Also I checked the config for the loadfile , and changed it to the updated version of perl. Which one should I use?

      C:/perl58/bin/perlis.dll or C:/perl58/bin/perl58.dll?
      Or are both the same? -I tried both and both seems to still give me a 500 error message. Also where can I check the server log? I'm not really the admin of the server but I did check under adminstration tools > event viewer > and checked for any errors with 500? :(

        You should load C:/perl58/bin/perl58.dll, and you definitely should install mod_perl.

        To get mod_perl:

        Official Website:

        To install the binary package (the quick and easy way) - open a CMD shell and then type the following:
        ppm install
        You also need to download the module from here -> Drop this file under C:/Apache2/modules directory.

        Also where can I check the server log?

        If you're using IIS, you're out of luck. It doesn't write error logs, and the reasearch I've done has not highlighted a hidden feature/setting either that can produce error logs. The access logs are all you get.

        Barbie | Birmingham Perl Mongers |

Re: 500 Internal Server Error - Using ActiveState perl
by bart (Canon) on Jan 07, 2004 at 10:43 UTC
    You could be missing some modules, or have some things that worked fine on an older perl but produces a warning on a newer perl. Try running the script from the command line — or at least, compile it, using
    C:\perl58\bin\perl5.8.2 -cw
    That way you can figure out exactly what is wrong. Only proceed to try to run them via the web server, when this works fine.
Re: 500 Internal Server Error - Using ActiveState perl
by MidLifeXis (Monsignor) on Jan 07, 2004 at 04:20 UTC
Re: 500 Internal Server Error - Using ActiveState perl
by Art_XIV (Hermit) on Jan 07, 2004 at 14:24 UTC

    If you are trying to run your scripts using IIS rather than Apache then make sure you read the section 'How do I configure Microsoft IIS 4.0/IIS 5.0 to support ActivePerl?' in the Activeperl FAQ.

    Under IIS the shebang doesn't matter quite as much as making sure the the file extensions are mapped correctly.

    And use Apache instead of IIS if you can. ;)

    Hanlon's Razor - "Never attribute to malice that which can be adequately explained by stupidity"

      Thanks for all the help

      I tried even using a simple print "HEllo" script to test if it works. No luck and still gives me 500 error. I tested the print hello script on the command line and works fine.

      I think reading that FAQ may just do, so going to get going on that, because right now I'm pretty sure this is a configuration problem.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://319347]
Approved by Roger
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2018-07-19 00:23 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (398 votes). Check out past polls.