kevosull has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm trying to set up a Windows 2003 server so that it runs perl scripts. I have installed the latest version of Active Perl from ActiveState. I checked the path in the environment variables. I also made sure that .pl and .plx are included in the mappings in IIS (version 6). Everything seems to be in order but it still wont run any perl scripts (even the examples included with the Active Perl installation aren't working). I'm probably overlooking something very simple but I just can't think what it could be. Any ideas on this? Any help would be greatly appreciated.
  • Comment on Perl scripts wont run on Windows 2003 server

Replies are listed 'Best First'.
Re: Perl scripts wont run on Windows 2003 server
by davorg (Chancellor) on Nov 22, 2005 at 10:32 UTC

    You need to give us more detail. What you to mean by "it still wont run any perl scripts"? Exactly what behaviour are you seeing? Are you getting anything in the browser? Is anything written to the web server error log?

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

      Some more details. Trying to call any .pl files throws up a 'file not found' error on the browser. When calling html pages with embedded perl, the html is rendered and displayed in the browser but the perl code does nothing. For example, a calculator written in HTML with perl script for handling button actions - the calculator appears perfectly but nothing happens when any of the buttons are pressed. Nothing written to the web server error log.

        Well the "file not found" error implies that the URL to file mapping isn't working as you think it is. The URLs that you're giving for Perl programs aren't being translated to the paths that you think they are.

        As for embedding Perl code into your HTML pages, that's not going to "just work". You need to set up some mechanism that supports that. Is this server side Perl (e.g. EmbPerl or Mason) or client side Perl (e.g. Perlscript)? How have you configured it to work? Does anyone else have similar pages working on the server?

        Oh, and you haven't said which web server you are using. You mentioned that it's running on Windows 2003 so there's a good chance that you're using IIS. Have you considered using Apache instead?

        --
        <http://dave.org.uk>

        "The first rule of Perl club is you do not talk about Perl club."
        -- Chip Salzenberg

Re: Perl scripts wont run on Windows 2003 server
by strat (Canon) on Nov 23, 2005 at 08:45 UTC