in reply to Script executing on client, not server

You need to take a look at the following
  1. Create a file system directory to store your perl scripts. Make sure that read/execute permissions are granted to iusr_<server> user (assuming the script is being run anonymously).
  2. Create a virtual directory in IIS.
  3. Use the properties page to set the execute permissions to scripts and executables (Perl.exe is an executable)
  4. If necessary, add an extension map for a .pl extension using the configuration button on the directory properties page. This may already be done if you have installed the ActiveState distribution.

If you need to add a map for.pl files then you will need the following:
Executable: C:\Perl\bin\perl.exe "%s" %s
Extension: .pl
Limit to: GET,HEAD,POST
Script Engine : yes
Check File Exists : yes

  • Comment on Re: Script executing on client, not server

Replies are listed 'Best First'.
Re^2: Script executing on client, not server
by Anonymous Monk on Aug 11, 2004 at 15:57 UTC
    Thanks inman. I have two questions:

    1.What is iusr_<server> user? I realize I'm supposed to replace 'server' with my server's name. But where do I input this info? Is that under folder properties, in the security tab?

    2. How do I use this virtual directory. I've been previously told to create a virtual directory, and set the correct settings. I've done that. But what am I supposed to do with this directory? Where/how do I reference it? Any special syntax?

    Thanks

      The iusr_server user is created when IIS is installed (possibly with the installation of your OS). The user account is a local account that is used by IIS to serve content to 'anonymous' users. You can explicitly set the permissions for this user in the folder properties, security tab. The IUSR_server account will be listed in the local computer's users (as opposed to a Domain). This user needs to have read/execute access (not write).

      Check out this link - http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/Windows/ActivePerl-Winfaq6.html#How_do_I_configure_Microsoft_IIS from the ActiveState website for more info on setting up ActiveState Perl with IIS.