Setting Windows File Permissions | ||
Note: These instructions are intended for System Administrators only. When Windows executes Perl scripts through the Web Server (IIS) it runs them under a special user account called IUSR_SERVERNAME where SERVERNAME is the name of your server. In order for the perl scripts to be able to create and update their data files, this user needs to have the appropriate permissions (as indicated in the install guide) over the scripts data files and directories. Make sure you are running perl 5.004 or better. If you are not sure which version you have, run the script at the bottom of this page. The latest version of Perl for Windows can be downloaded from http://www.activestate.com/ ADDITIONAL RESOURCES The following perl script will display the perl version, full path to the cgi script, and the user account that windows executes scripts with. Copy or upload this script onto your web server and run it through your browser. Note: If you are logged into a password protected page the username you are logged in with will be displayed, so ensure you are viewing a non-password protected page when running the program. #!/usr/local/bin/perl # winfo.cgi # display perl version, # script path, and account name use Win32; print "Content-type: text/html\n\n"; print "This is perl version $]<br>\n"; print "The path to this file is $0<br>\n"; print "Perl runs under the user account: "; print Win32::LoginName(); exit; |