Chapter 4 Configuring Web Servers and Web sites
This section provides a detailed explanation for setting up a CGI or WIN-CGI server to run with PowerDynamo.
Steps 1 and 2 are part of the PowerDynamo installation procedure. These steps are not necessary if you configured the Web server during installation. You must still complete steps 3 through 5.
For more information, see "Configuring Web servers during installation".
In Step two of Configuring a CGI or WIN-CGI server, you will be copying DLLs to the directory of the CGI or WIN-CGI Web server. For the server to find these DLLs, you must edit your computer's system path to include the directory containing the DLLs. Figure 4-4 shows the System Properties window.
The DLL directory must be added to the system path, not the user path.
Each Web server has a method for defining directories where programs executable by the Web server are located. You must install the Application Server software into a directory defined as executable by the Web server.
The PowerDynamo Application Server for CGI Web servers includes the following files:
The following Powersoft Power++ runtime libraries are installed into your Windows SYSTEM directory or your Windows NT system32 directory:
The PowerDynamo Application Server for WIN-CGI Web servers includes the following files:
The following Powersoft Power++ runtime libraries are installed into your Windows SYSTEM directory or your Windows NT system32 directory:
For more information on setting up your CGI or WIN-CGI directory, consult your Web server documentation. It is important that the directory is set up for the correct type of server.
CGI Web servers allow you to describe a set of executable directories. Each directory has an alias, which is an URL prefix corresponding to that directory. The default alias for most CGI Web servers is /cgi-bin.
CGI Web servers support one of two types of CGI:
Determine which type of CGI your Web server uses.
CGI Helper
In order for a Web site to interface
with PowerDynamo through CGI you must run the Dynamo CGI Helper
along with the Web site server itself.
This is a sample URL call for a CGI server:
http://server/cgi-bin/dycgi03.exe/Site/Contents.stm
This is a sample URL call to a WIN-CGI server:
http://server/cgi-win/dycwin03.exe/Site/Contents.stm
Creating a System DSN is the same as creating a DSN except a System DSN is available to all users on a machine as well as services.
Note If you are connecting to a file-based Web site, or using an Open Client connection, this step is not necessary. If you are using Windows 95, create a data source; you do not need a system DSN.
To create an ODBC System Data Source Name:
Creating an ODBC data source to connect
to an Adaptive Server Enterprise database
When you are creating an ODBC data
source for an Adaptive Server Enterprise database the Select Method
must be set to 0 - Cursor for Dynamo to work. The Select method
setting is located within the ODBC Administrator -> ODBC Sybase
Driver Setup -> Performance Tab
To ensure that the ODBC data source is available:
You should create a connection profile for your Web site to store connection information in the registry in encrypted form. This information is used by Sybase Central, the Personal Web Server, and the Dynamo Application Servers.
Note
If you are connecting to a file-based
Web site, or using an Open Client connection, see "Creating a connection profile for your Web site".
To create an ODBC connection profile for your Web site:
Once the site Web server receives an URL from a Web client, it passes it to the Dynamo Application Server, which locates and processes the document. You must add a mapping to the Application Server so it can locate the document. Use the Configuration folder found within the Utilities folder of Sybase Central to add a mapping to the Application Server.
To add a new mapping using the Dynamo Configuration folder:
For a more detailed description of how to configure the Dynamo sites using Sybase Central and the Configuration folder, see "Configuring Web sites".
Copyright © 1999 Sybase, Inc. All rights reserved. |