Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 28058

Variety of problems setting up IIS 7.5 with Perl

$
0
0

 I have a new development system running Windows 7 Pro. I've loaded IIS 7.5 and ActivePerl 5.14.2 (x86) and followed the instructions widely available on the net (set up handler mappings using PerlEx30.dll, enable 32-bit). A simple Perl script runs fine - once, but I've run into several problems which may or may not be related:

  1. Some kind of state is being stored for sessions. I've sifted it down to the following: Perl variable values are stored from session to session. A simple script that prints, then increments an uninitialized variable returns successively higher values each time the script is accessed from a browser. Different scripts accessing the same variable get the value most recently set by whichever script was most recently run. Everything is cleared if I restart IIS. This may be a Perl thing, but it happened even running Perl 5.8.9 on Windows 7, whereas it didn't happen in my old XP environment. It also doesn't happen if you run the scripts from a command prompt. I know it's not cool to use uninitialized variables, but it tells me something weird is happening, and I wonder what else is being stored.
  2. use CGI::Carp qw{fatalsToBrowser}; isn't working at all, and none of the fixes I've seen on the Net help in the slightest.
  3. The whole wwwroot directory and all subdirectories are "read only" and even "attrib" can't seem to clear that setting, making it very difficult to edit files in the websites below it.
  4. Permissions seem odd. I am denied writing to a file, even though the directory I'm writing to has "full control" permission for "IIS_IUSRS (my-computer\IIS_IUSRS)". If I add a user "everyone" and give it full control, everything's fine.

I'm hoping that these are all related and are some kind of configuration issue I'm not aware of. It's also possible I made some errant setting that I didn't fix in the act of re-installing IIS and Perl. Any thoughts"


Viewing all articles
Browse latest Browse all 28058

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>