I will start this by first assuming everyone knows what the Mr. Fong Device is and you just want to set it up to work on your freshly installed .NET Standard Server. Note: This may apply to other OSes but I don't know.
What you will need:
ActivePerl - www.activestate.com
Albert Fong Device 1.38a - http://hammer.prohosting.com/~fongdev/
Windows Server 2003 Standard Edition (RC 2)
Windows Server 2003 must be installed on a NTFS Partition
In this example I am using basic system defaults (which vary from my own system so please leave room for error)
IIS Documents Are: C:Inetpubwwwroot
Which means the wwwboard directory would be: C:Inetpubwwwrootwwwboard
And the cgi-bin directory is: C:Inetpubwwwrootcgi-bin
Also, to increase security I recommend you make the data directory outside of the web visible part, ex: C:Inetpubdata
Ok now you're going to want to rename all of the fd_ files from .cgi to .pl and place them in the cgi-bin directory of the web site.
Now load IIS from the Administrative tools in the Control Panel. Click the name of your computer. Now click "Web Service Extensions", on the left side of the main frame you will see a green arrow pointing to a link that says "Add a new Web service extension...", click that. In that window, where it asks for the extension name you can put anything, like "CGI script" and under the "Required Files" section put the following in (without the pipes) | C:Perlbinperl.exe "%s" %s |* Also, click "Set status to allowed" now press ok. Now click, on the left side, "Web Sites" and double click "Default Web Site" (since we are going with defaults here) you should see a directory "cgi-bin", right click that and click "Properties", now in the "Application Settings" you should see a text box and a few other objects dimmed out, click the "Create" button, then click "Configuration" and, under the mapping, insure there is a .pl extension that points to the executable (without the pipes) | C:Perlbinperl.exe "%s" %s |*. Now click ok and you should be back at the properties, under the "Application settings" where it says "Execute permissions" change it to "Scripts and Executables". Then click the "Documents" tab and deselect where it says "Enable default content page". Click "OK". You can now close the IIS configuration window and open Explorer. Go to C:Inetpubwwwroot and right click wwwboard, click the "Security" tab then click "Users (MACHINEUsers)" and give them "Full Control", go to "C:Inetpubdata" and push the control button and then letter "a" on your keyboard, once again, click the "Security" tab then click "Users (MACHINEUsers)" and give them "Full Control", now push "OK". Security is now taken care of.
Editing the files accordingly:
Go to your cgi-bin directory (C:Inetpubwwwrootcgi-bin) and right click fd_admin.pl, then click edit (or just open the file in Notepad manually)
Change the header #!/usr/bin/perl to #!C:Perlbinperl.exe
Change $basedir = "/path/to/wwwboard"; to $basedir = "C:\\Inetpub\\wwwroot\\wwwboard";
Change $datadir = "/path/to/data/dir"; to $datadir = "C:\\Inetpub\\data";
Repeat that for each of the fd_files.pl
In the fd_board.pl file you must also change this:
Change open(NEWFILE,]$basedir/$mesgdir/$num.$ext") to open(NEWFILE,]$basedir\\$mesgdir\\$num.$ext")
The easiest way to do that is to push control and "f" on your keyboard and search for "mesgdir" without the quotes. You must also make sure to edit anything where it says yourname.com and the web path to the file you are editing (e.g. http://www.yoursite.com/cgi-bin/fd_board.cgi must be changed to http://www.yoursite.com/cgi-bin/fd_board.pl - yoursite.com being your web site ;-))
Now, go back to C:Inetpubwwwrootwwwboard and open index.html and edit the file according to your configurations. You must change the web paths because we renamed all of the .cgi files to .pl.
We're finished, give yourself a test run to make sure it works, then load fd_admin.pl and change the default password. Have Fun!
The following sites deserve credit:
http://www.scriptarchive.com/faq/wwwboard.html - go to question 3 ;-)
http://hammer.prohosting.com/~fongdev/
This article was originally published by CyberArmy.net in the CyberArmy Library.
|
|