Hi Maureen, > I set up this cgi file and html form on a Unix server. The script > changes a user's password in a text file. > > This works correctly on a Unix Server. However, I need to move these > files to an IIS server. > In testing on the IIS server, I get an HTTP Error 405- Method not > allowed when the form is submitted. > > I did some research, but was unable to determine how to correct the > error. > > If anyone could help me out, I'd really appreciate it. In order to run perl scripts under IIS you need the following: 1. A Virtual Directory called cgi-bin within your web site. 2. In the properties of the cgi-bin directory in IIS check that the Execute Permissions are set to Scripts and Executables. 3. Check the path to Perl, type path in a Command Window it should be something like: C:\Perl\bin\;C:\WINNT;C:\WINNT\system32\WBEM; (providing Perl was installed on the C: drive) 4. Check that the Perl association in the Virtual Directory is set to: C:\Perl\bin\perl.exe %s %s (the s in both should be lower case) 5. Check the Perl association in the Registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\Script Map is: C:\Perl\bin\Perl.exe %s %s (the s in both should be lower case) 6. Perl actually does run, in a Command Window type: perl -v Should give something like: C:\>perl -v This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) There will be a lot more output here which I have not added. 7. Copy the following script into a file called test.pl and place it in the web site cgi-bin directory: #!perl my $sMessage = "<HTML><BODY>OK</BODY></HTML>"; print "Content-type: text/html\nContent-length: " . (length $sMessage) . "\n\n$sMessage"; Browse to: http://your_web_site/cgi-bin/test.pl And if all is well you should see OK in the browser. Hth, Shaun --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.314 / Virus Database: 175 - Release Date: 11/01/2002 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]