in reply to Perl scripts wont run on Windows 2003 server

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

  • Comment on Re: Perl scripts wont run on Windows 2003 server

Replies are listed 'Best First'.
Re^2: Perl scripts wont run on Windows 2003 server
by kevosull (Initiate) on Nov 22, 2005 at 11:32 UTC
    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

        Ok, I'll start again. I'm not writing any code, I'm just migrating a web service from one server to another - both Windows 2003 using IIS (I have no control over this, can't change to Apache). I don't have any experience with Perl and very little with servers - I was handed this task because no-one else wanted to do it.

        I created a virtual directory on the new server and copied all the files accross to this, changing the URL's in all the pages to point to the relevant location within the virtual directory. These are all working fine, with all links working perfectly. There is one button on the main page, which when pressed should call a Perl program, but this throws up a 'file not found error'. I manually located the program by exploring the directory through the browser, but clicking on the program still gives the file not found.

        On the server I installed the latest version of Active Perl. I checked that the path in the environment variables pointed to the correct location of the Perl interpreter. I also checked that the mappings in application configuration in IIS pointed to the correct executable path for the .pl, .plx and .plex extensions.

        As a side thought, I tried opening the examples (which contained Perlscript) included in the Active Perl installation from a browser on the server.

        I have gone through the settings in IIS and the Server Manager on both servers and they seem to be the same.

        There are no other pages running on the new server - someone tried to do something similar to what I'm doing but gave up when they ran into the same problem that I'm having.