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

I am learning Perl/CGI and working with 2 web servers. The scripts run on the Unix/Apache server but when I run the same scripts on the Microsoft web server it just prints the lines of code in the browser window instead of interpreting them. Perl is installed on d:\perl. I've tried having the path set to #!c:\perl, #!d:\perl, #!d:\perl\bin. Nothing seems to work. Is the a web configuration issue or is the script not finding the interpreter? Help!

Replies are listed 'Best First'.
Re: Perl on IIS
by tcf22 (Priest) on Feb 11, 2004 at 16:33 UTC
    A little off topic, but try this:
    1. Right click on the website
    2. Click Properties
    3. Click "Home Directory Tab"
    4. Under Application Settings click "Configuration..."
    5. Make sure that .pl & .cgi extensions are added with the path 'c:\perl\bin\perl.exe "%s" %s' and the verbs GET, HEAD, POST
    I'm assuming that you are using IIS.

    - Tom

Re: Perl on IIS
by AcidHawk (Vicar) on Feb 11, 2004 at 20:58 UTC
    Try and replace you #!d:\perl line with #!d:/perl/bin/perl.exe
    -----
    Of all the things I've lost in my life, its my mind I miss the most.