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

Hello Monks, I have a perl, cgi based system that runs on the internet. My question is very basic and I'm sure there is a simple answer, I have been using a perl editor to test individual cgi programs on my windows xp (stand alone) machine. I then FTP the test module to the internet site and all works fine. My Question is how do I get this same system to run using Windows XP (stand alone)? WHen using the editor I always get a download screen when trying to executing a module other than the one I am testing. I hope I have nade myself understandable and I thank all Monks for help you have provided in the past.

Replies are listed 'Best First'.
Re: Using windows xp with perl and cgi
by scottj (Monk) on Jan 31, 2004 at 12:54 UTC
    I'm thinking that you'll probably want to install Apache on your XP machine. Download Here.

    Somebody correct me if I'm wrong here, but I believe you can download a binary mod_perl DLL for the Win32 Apache as well.
Re: Using windows xp with perl and cgi
by CountZero (Bishop) on Jan 31, 2004 at 13:17 UTC
    Or go to Apachefriends and get yourself a runs-straight-out-of-the-box Apache/mod-perl/PHP/MySQL system for Windows.


    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

      Mr. Countzero is really Mr. Countaplus. This is the easy answer I have been looking for. Anyone with a single digit IQ (like me) can get this up and running with very little pain. Thanks so much, and thanks to all the other Monks who have taken the time to help me. I hope someday to be able to return the favor. Erniep
Re: Using windows xp with perl and cgi
by kutsu (Priest) on Jan 31, 2004 at 16:05 UTC

    Ovid has written a tutorial on this very thing

    "Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce

Re: Using windows xp with perl and cgi
by Roger (Parson) on Jan 31, 2004 at 13:18 UTC
    Before going on further, let's find out which web server you are running on your windows XP... IIS or Apache?

      For alot of things, I find the Xitami Web Server on Windows XP is great for testing Perl CGI scripts locally before running them on an Apache Server online.
        While Xitami was/is a decent server, Apache on Win32 is a preferable choice here as it would increase portability with UNIX Apache versions.

        Apache on Win32, as available today, can be installed as an NT/Windows20000/XP/2003 service -- it runs great.

        I also find Apache configuration to be a lot more sensible than Xitami's INI file scheme with various "edit this" and "don't edit that" files. You will also find better documentation, support, and extensions for Apache. In all, unless you have a good reason for needing the built-in FTP support, I don't know why someone would pick Xitami anymore.

Re: Using windows xp with perl and cgi
by rchiav (Deacon) on Jan 31, 2004 at 18:05 UTC
    If you have IIS installed on your XP machine, you can just install activestate's active perl and it will automatically configure IIS to use perl for .pl files. But again, you haven't mentioned what web server you're using locally or even remotely.
      IIS is typically prone to viruses and worms more so than any other web server. I would advise against it for home use -- use it only when behind a tightly controlled firewall and when software components specifically require IIS over other alternatives (such as Apache on win32, or better yet, on Linux/BSD).
Re: Using windows xp with perl and cgi
by zebedee (Pilgrim) on Feb 02, 2004 at 08:35 UTC
    1. If you are running Windows XP Home, then IIS is not shipped with it. 2. Assuming that you do have IIS or some other server, the download dialog can mean a problem with file (MIME?) types - Internet Explorer doesn't know what to do with the file of the specified type/extension, so offers to download it as a last resort.