Manually configuring Microsoft Web Servers

Web Connection includes a host of tools for configuring your Web Site they consist of:

The setup program and the various Project and Process Wizards should create all the Web site configuration settings for you automatically. But under certain circumstances it's possible that the new settings don't take. In particular you may find that virtual directory and script map settings didn't take.

For those of you that want to know or don't trust utilities here's how to do the dirty work by hand.

For manual installation on IIS 7 or later please see:
IIS 7 Configuration

For manual installation on IIS 6 and Windows 2003
Windows 2003 Configuration

Manually configuring IIS under Windows NT/2000/XP/Windows Server

Making the appropriate entries in IIS is fairly straightforward. You can use the IIS Management Console to perform these task via an easy to use GUI interface.

Note:
IIS is not automatically installed on client operating systems. To do so you have use the Windows Components installer and explicitly install IIS and IIS Management Console.

Creating a virtual directory

Creating Script Maps

Script maps by default are installed on the new virtual directory only, but you can optionally install them at the root of the server in which case they are visible throughout the entire Web site. Typically you'll want local script maps only, global scriptmaps can be useful if your application is site-wide or wants to run in various different virtual directories.


Make sure your temp directory has full rights for IUSR_
It's vital that you configure the directory that you choose for Web Connection temp file creation (set in wc.ini with PATH= and your app's INI file as TEMPFILEPATH=) has FULL rights configured for the IUSR_ account. If you're running NTFS use the NT Directory permissions to configure this. With FAT set up the TEMP path for sharing and make sure that IUSR_ or Everyone is included in the list.

Note: The temp path does not have to be your system TEMP path, although that's the logical place to put this file. I personally prefer to use a path such as d:\temp\wc so the directory is isolated and this is the installation default.

Using the wwWebServer Class to create configurations programmatically

Web Connection ships with a class library called WebServer.vcx which lets you programmatically configure the Web server. To do so you can use like the following from the VFP Command Window:

DO CONSOLE WITH "SPLASH"
o=CREATE("wwWebServer","IIS4")
o.CreateVirtual("wconnect","c:\inetput\wwwroot\wconnect\")
o.CreateScriptMap(".wc","c:\inetput\wwwroot\wconnect\wc.dll")

The following server types are supported:

IIS6 - IIS6 is used under Windows Server and sets up a Web Connection Application Pool
IIS4 - IIS4 and IIS5 and PWS 4 and 5 under Windows NT
IIS3 - IIS 3 and PWS 3 under Windows NT
PWS4 - Personal Web Server 4.0 Windows 98
PWS3 - Personal Web Server 1.0 and 3.0 Windows 95

Using the Server Configuration Wizard

You can also use the Management Console's Server Configuration Wizard to create Virtual directories and script maps.

These are the tools the Web Connection Setup uses internally to configure the server, so if Setup fails to install settings it's possible that the wwWebserver class and the Console will not do the trick and you have to follow the manual steps outlined above.



See also

Server Configuration Wizard | Management Console Command Line Interface


  Last Updated: 5/28/2008 | © West Wind Technologies, 2008