Best viewed with














Configure PERL on IIS

The following PERL script can be used to test for the proper installation and execution of CGI scripts with Internet Information Server.

Create a file with NotePad and type the following lines of code. Save the file in the scripts directory as Helloworld.pl.

print "HTTP/1.0 200 OK\n";
print "Content-Type: text/html\n\n";
print "<HTML>\n";
print "<HEAD>\n";
print "<TITLE>Hello World</TITLE>\n";
print "</HEAD>\n";
print "<BODY>\n";
print "<H4>Hello World</H4>\n";
print "<P>\n";
print "Your IP Address is $ENV{REMOTE_ADDR}.\n";
print "<P>";
print "<H5>Have a nice day</H5>\n";
print "</BODY>\n";
print "</HTML>\n";

Once you have created the file, you need to configure PERL to run securely with Internet Information. Perl.exe should not be located in any of the directories accessible by a user with a browser.

With a script mapping in the registry, you can place the Perl.exe outside of the normal directory structure a user has access to.

To configure PERL script mapping:

1.Start REGEDT32.exe and open HKEY_LOCAL_MACHINE\SYSTEM\
CurrentControlSet\Services\W3SVC\Parameters\ScriptMap
2.Click Add Value from the Edit menu.
3.The Value Name is .pl
4.The Data type is REG_SZ.
5.The String value is \perl.exe %s
6.Restart the WWW service.

Now that the registry has been configured, you can test the PERL script with your browser. Using the defaults directory structure with IIS, the URL would be the following:

http://<Server Name>/scripts/helloworld.pl?

Change NT logo (or other bitmap) during logon

Design an appropriate bitmap and place it in your NT directory as YourLogoName.BMP. Use 8.3 naming convention.

Edit: HKEY_USERS \DEFAULT\Control Panel\Desktop

Double click or Add Value REG_SZ of Wallpaper and set it to the full path to YourLogoName.BMP.

Double click or Add Value REG_SZ of TileWallpaper. 0 is Don't tile, 1 is tile.

Double click or Add Value REG_SZ of WallpaperStyle. 0 is normal, 2 is stretch to fill the screen (which is mutually exclusive with TileWallpaper = 1).

Reboot to view your new Logo.

Home

LinkExchange
LinkExchange Member


Surfer's Award| Free Software| Free NT Tips| Free Counters| Free Guestbooks| Free Fonts| Free JavaScripts| Link to Us| About Author| Feedback| Home

© Copyright 1996, 1997 Surfers' Virtual Home. All Rights Reserved.