I haven't had a chance to work on it recently, but I think it will turn out
to be the .cgi extension (I'll have to go back and see who suggested that).
I have my scripts in a directory which was created automatically called
"scripts" a subdirecctory of c:\inetpub - IIS has it configured for
executables. However, all my perl scripts in this directory have the
extension .cgi. Double-clicking one of the example files installed by
ActivePerl (those files have a .pl extension) executes fine, but my .cgi
files have a generic icon - can't believe I didn't think to check that.
I have the O'Reilly CGI book, with the rat/mouse on the cover, it is very
helpful for CGI and Perl. I have the working version at work, it's just the
implementation at home on IIS that I'm struggling with after doing my
development at work. :(
Thanks very much for the suggestions, I hope to be able to tackle this
tonight (after my 2 year old goes to bed - she doesn't have much patience
for programming yet!).
> From: "yahoo" <[EMAIL PROTECTED]>
> Date: Sun, 2 Sep 2001 18:28:47 +0100
> To: <[EMAIL PROTECTED]>
> Subject: RE: active perl on IIS
>
> Hi Gunther,
> I think Lynn said she was looking for a book which covered IIS &
> PerlScript - the OReilly win32 book is good for that (going hand-in-hand
> with ActiveStates latest documentation of course!).
>
> I don't think IIS normally pre-creates a cgi-bin for you - none of my
> installations have one (here is an excerpt from the IIS 5 documentation)
> <extract>
> To install and configure CGI applications:
>
> Set up a directory for your CGI programs. For extra security, you should
> separate your CGI programs from your content files. You do not need to name
> the directory Cgi-bin, although you can do so if you want. See Creating
> Virtual Directories.
> </extract>
> As I said in my original email, you need to mark the directory as allowing
> scripting for executables inorder to get the .pl file to run.
>
> I agree with what you say about the file extension; I did mention the .pl
> extension in my original response.
>
>
> Lynn, any updates on this problem?
>
> regards
>
> Joel
> -----Original Message-----
> From: Gunther Birznieks [mailto:[EMAIL PROTECTED]]
> Sent: 02 September 2001 04:00
> To: yahoo; [EMAIL PROTECTED]
> Subject: RE: active perl on IIS
>
>
> Joel, I could be wrong but based on the way Lynn describes the problem, it
> does not sound like she has a problem with Perl being installed as the
> PerlScript examples do work as she stated. Also, she should not have to
> create a cgi-bin. IIS has a pre-created cgi-bin typically.
>
> While I am a fan of OReilly, I am also not sure that Win32 Perl book from
> OReilly will help Lynn so much because it's about Perl first and foremost,
> CGI secondarily (not that much coverage), and I don't think it goes into
> server configs but I could be wrong.
>
> Anyway, I think what Lynn is describing sounds more like a file extension
> problem. ActiveState Perl does set up Perl for IIS if I remember correctly
> but it does it based on FILE EXTENSION. So an important factor here is that
> Lynn should figure out if her file extensions would run if she clicked on
> the script in Explorer.
>
> I would be interested to know what file extension she is using for her
> scripts. If her colleagues are on UNIX and writing web apps, it's highly
> likely that they might use .cgi as an extension? But ActiveState never sets
> up .cgi. It will set up .pl for Perl for example.
>
> I have a more detailed article on this topic located here:
>
> http://webcompare.internet.com/isapiperl/index.html
>
> With a page specific to providing hints for installing ActiveState Perl for
> IIS here.
>
> http://webcompare.internet.com/isapiperl/isapiperl_3.html
>
> Good Luck,
> Gunther
>
> At 08:23 PM 8/29/2001 +0100, yahoo wrote:
>> Lynn,
>> I've installed ActiveStates Perl a couple of times on Win 2K & NT and each
>> time, as part of the install, it allowed/prompted for the configuration of
>> the ISAPI part which basically meant you can run perl as an active x
>> scripting engine. <SCRIPT LANGUAGE=perlscript> runs fine then.
>>
>> I seem to remember that CGI still works fine and they had some sort of
>> speedy up extra module to make it go faster - kinda like a mod_perl for IIS
>> I suppose - anyway, that is an aside.
>>
>> Ok, back to the point. Oreilly do a WIN32 Perl book - I've found it very
>> good.
>> http://www.amazon.com/exec/obidos/ASIN/1565923243/qid=999111590/sr=8-1/ref=
> a
>> ps_sr_b_1_1/102-3850428-7506526
>>
>> Have you got any test perl scripts running on your IIS box?
>>
>> I THINK you need to:
>>
>> 1) create a folder to house the cgi-bin
>>
>> 2) mark that folder as executable
>>
>> 3) put your perl (.pl) program in that. Don't think you need the shebang in
>> win32.
>>
>> Can you try a simple hello world cgi program?
>>
>> You can always convert to an ASP PerlScript? You know, the form submits to
>> itself and the serverside code does whatever and the send HTML back....
>>
>> Can you post your perl code, html, where you put them in respect to
>> eachother on the webserver, execute permissions of the folders etc.
>>
>> regards
>>
>> joel
>>
>>
>> -----Original Message-----
>> From: Lynn Glessner [mailto:[EMAIL PROTECTED]]
>> Sent: 29 August 2001 19:38
>> To: [EMAIL PROTECTED]
>> Subject: active perl on IIS
>>
>>
>> Can anyone point me to a site or book with detailed information about
>> configuring my W2K server IIS for perl and cgi? I have a form which I
>> designed at work on Linux and Apache, and it works fine in that
> environment.
>> I want to run it on my home W2K machine, but am baffled. My coworkers are
> no
>> help because they all work on *nix machines.
>>
>> I installed activeperl and followed the configuration directions at the
>> activeperl site but after clicking submit on my form I get "the page cannot
>> be displayed". The active perl example pages work correctly, but they have
>> the perl script imbedded in the html page, unlike what I want to run which
>> is a separate html file and perl script. I'm not expecting anyone in this
>> group to walk me through it, unless you want to :), but can you point me to
>> a helpful source?
>>
>> I did change the path in the form action tag, but there is probably
>> something else simple I am forgetting in this port from unix to windows. On
>> apache, I check error_log, is there an equivalent log file for W2K IIS?
>>
>> Thanks,
>>
>> Lynn
>>
>>
>> --
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>> _________________________________________________________
>> Do You Yahoo!?
>> Get your free @yahoo.com address at http://mail.yahoo.com
>>
>>
>> --
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
> __________________________________________________
> Gunther Birznieks ([EMAIL PROTECTED])
> eXtropia - The Open Web Technology Company
> http://www.eXtropia.com/
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]