in reply to what instead of #!/usr/bin/perl

If you decide to go with Apache for Windows, you can read this link for step-by-step instructions on how to set it up.

I haven't used Personal Web Server, that I recall, but it may be a case of associating the .cgi extension with the Perl executable. Personally, I don't like that as it typically requires editing the registry to manually add the -T switch to turn on taint checking. Otherwise, if the shebang line (#!/usr/bin/perl) is the problem, change it to the path of the Perl executable. It will then resemble something like the following:

#!C:\perl\bin\perl.exe -wT

The -wT, strictly speaking, isn't necessary, but the warnings are helpful when developing your code and the -T switch is essential when doing Web programming as it turns on taint checking. See perlsec for details.

Last comment: if you are getting internal server errors, what do your Web server logs say? Find them and they'll probably tell you exactly what the problem is.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

  • Comment on (Ovid - setting up a Web server) Re: what instead of #!/usr/bin/perl
  • Download Code

Replies are listed 'Best First'.
Re (tilly) 2: what instead of #!/usr/bin/perl
by tilly (Archbishop) on Apr 09, 2001 at 20:28 UTC
    Actually you probably have used PWS but don't realize it. But for two registry entries, PWS is (or at least used to be) IIS. I don't know about Windows 2000, but with NT those two entries were the only difference between NT Workstation and NT Server.

    Why 2 entries you ask? Well when there was just one they had too many problems with people just flipping it. So they made it 2 as a check, and if they don't match your computer will BSOD on boot. (To be sure, changing them violates your license agreement, so Microsoft does have a point...)

    Anyways, any time you see PWS just say what you would think for IIS and it is probably going to be correct. It is the same software. Same binary. Just different configuration settings.