Before you begin: Remember that these are sample applications designed to help you develop your own complete applications. These applications may not suit your real-time production requirements "as is," as explained in our Netscape AppFoundry FAQ. Please be sure to make backups of any HTML documents you use, and carefully review the technical notes in this document.
If you encounter any difficulties downloading or installing the software, please go to our AppFoundry Troubleshooting FAQ or Forums page.
System Requirements | Web and Database Software Requirements | |
Unix |
|
|
NT |
|
# mkdir /usr/ns-home/LiveWire/bin/
If you installed Enterprise Server from the Netscape Test Drive download file,
lwcomp will be located in the same directory as the ns-setup installation program. If you
installed Enterprise Server from CD-ROM, lwcomp will be located under the [cdrom mount
directory]/LIVEWIRE subdirectory. If you want to run the LiveWire compiler from any
directory on your computer, add the directory to your PATH environment variable. For more
information on LiveWire, please refer to the
Netscape LiveWire release notes.
Enabling Netscape LiveWire
Solaris 2.4 Patches
For general information and documentation on the Informix database, check out Informix's Knowledge Base.
UNIX ENVIRONMENT
DOWNLOAD AND SETUP
The ns-setup program does not install the LiveWire
compiler into the directory structure of Enterprise Server. To use the LiveWire compiler,
you must manually copy the LiveWire compile, lwcomp, into the proper LiveWire bin
directory after you have installed Enterprise Server.
[Server-root]/LiveWire/bin
[Server-root]/LiveWire/bin
directory
# cp lwcomp /usr/ns-home/LiveWire/bin/
After successfully installing and configuring
Netscape Enterprise Server, make sure you enable the Netscape LiveWire runtime (included
in Netscape Enterprise Server) by using Netscape Enterprise Server's administration
interface. You can do this from the Netscape administration server. Select Programs,
select LiveWire, and then select to Enable LiveWire applications. Save and apply the
change.
For the Solaris 2.4 operating system, ensure
that all patches up to and including Patch 34 and Patch 101242-10 have been applied.
Patches can be obtained from Sun.
Hosts File
You must ensure that a valid HOSTS file exists on the machine on
which the INFORMIX-OnLine Workgroup Server will be installed. The
HOSTS file should contain a fully qualified domain specification for the
host system in addition to the LOCALHOST entry. For example:
127.0.0.1 localhost
160.184.145.36 pctest..my_company.com
If a valid HOSTS file is not present, the Informix installation will abort the first time it tries to connect to the Informix server, when it attempts to build the "sysmaster" database. The Informix README file for Solaris contains more detailed information about the HOSTS file requirements.
Kernel Parameters for Solaris 2.4
When installing the INFORMIX-OnLine Workgroup Server, a small number
of kernel parameters must be set. These are specified in the README file
included with the Informix software. A reboot may also be necessary for
the kernel to be rebuilt with the appropriate parameters. The following
are the parameters for Solaris. They should be added to the /etc/system
file:
set enable_sm_wa = 1 (Note: This line is required only for Solaris 2.4, not for 2.5 or 2.5.1.)
Kernel Parameters for HP
Make sure that SHLIB_PATH includes $INFORMIXDIR/lib
and $INFORMIX/lob/esql.
Also, the following HP kernel parameters are recommended:
SHMMAX: 805306367
SHMMIN: 1
SHMALL: Not applicable
SHMMNI: 256 SHMSEG: 100
SHMBRK: Not applicable
MAXMEM: Not applicable
SEMMNI: 4096
SEMMNS: 4096
SEMMSL: Not applicable
NFILES: 8192
Kernel Parameters for DEC Unix 3.2C
The following kernel parameters must be adjusted to the indicated values
for minimally acceptable Informix Online performance. See your DEC OSF/1
System Administrators Guide or the doconfig (8) man page, for information
on adjusting these kernel parameters.
SHMMAX: 2097152000
SHMMNI: 150
SHMSEG: 150
SEMMNI: 400
SEMMNS: 100
SEMMSL: 1600
The default values for the following kernel parameters will usually suffice, but if necessary they may be increased to the indicated values:
DFLDSIZ 134217728
MAXDSIZ 8589934592
DFLSSIZ 8388608
MAXSSIZ 33554432
MAXVAS 17179869184
SEMOPM 400
SEMUME 400
HEAPPERCENT 60
After adding these parameters, reboot the system and proceed with Informix installation.
Go to the informix_path directory and enter the commands:
uncompress [informix_distribution].tar.Z
tar xvf [informix_distribution].tar
Kernal Parameters for SGI IRIX 5.3 and 6.2
The following kernal parameters are recommended:
SHMMAX: 536870912
SHMMIN: 1
SHMALL: 512
SHMMNI: 100
SHMSEG: 100
SHMBRK: Not applicable
SEMMNI: 400
SEMMNS: 2500
SEMMSL: 25
MAXMEM: Not applicable
NFILES: Not applicable
% sh install.[x].shar
where [x] is Sun, DEC, or HP.
Informix Environment Variables
The INFORMIX-OnLine Workgroup Server installation procedure defines
a number of Informix environment variables (most importantly, INFORMIXDIR
and INFORMIXSERVER). To connect to Informix, the HTTP server (for example,
Netscape Enterprise Server) needs to be aware of these. If you install
the HTTP server before installing Informix, Netscape LiveWire Pro will
not be able to open the connection to Informix. A message will indicate
that it can't locate the required Informix files. The solution is to stop
and then restart the HTTP server.
The following installation script creates two files to assist in this procedure:
Also, the Netscape server environment needs to include the INFORMIX environment variables contained in the above files. You may choose to do this either by adding the file contents to the "start" file for your Netscape Server or by ensuring that the user who runs the Netscape Server has the INFORMIX environment variables set.
Database User, Password, and Database Server Name
During the INFORMIX-OnLine Workgroup Server installation process, you
will need to create a database user, assign a password, and name the database
server. As downloaded, the applications are compiled to use a database
of type INFORMIX, informix for both user name and password,
and appalanche_db as the database server name. If you use these values
for user name, password, and database server name, you will not need to
modify each application's database connect string and recompile. (Note
that some of the applications may need recompilation for different reasons;
please be sure to read each application's README file.)
Serial Number and Key
When prompted for a serial number and key, enter the following:
HP-UX 10.01
Solaris 2.4, 2.5
OSF/1 3.2
IRIX 5.3, 6.2
NIS and Informix
The setup script adds an entry to /etc/services for INFORMIX. If your
system is configured to use a remote services database only (therefore
ignoring any local /etc/services entries), then you should have a services
entry added to your central NIS services database machine before running the setup script.
The services entry should look like this:
ifmx_srvc 2055/tcp # Service used by INFORMIX
If the 2055 port number is already in use by another service, then choose another port number.
Starting and Stopping the Informix Database
Make sure you start up the Informix database before you start the Enterprise Server. You can check that Informix is running by issuing the command
% onstat -
You can stop Informix by issuing the command
% onmode -ky
You can start Informix by issuing the command
% oninit
If you chose to have the installation script add Informix startup and stop to your operating system's startup files, you will not normally need to start or stop Informix manually.
Troubleshooting the Informix Installation
If you have any problems, examine the following files:
To get more information about the Informix error number shown in online.log, use the Informix "finderr" utility located in $INFORMIX/bin. For example, if you find that error -956 is mentioned in the online.log file you can find out more about the error by running the following command:
% finderr -956
Informix Electronic Documentation
Visit the Informix Workgroup Solutions Web Site at http://www.informix.com/wgs
to obtain electronic copies of product documentation.
You are now ready to proceed with installing the applications.
enterprise.ntintel.exe
to install and configure the Netscape Enterprise server. Note that Netscape
Enterprise Server includes a Netscape LiveWire runtime.
Enabling Netscape LiveWire
After
successfully installing and configuring Netscape Enterprise Server, make sure you enable
the Netscape LiveWire runtime (included in Netscape Enterprise Server) by using the
Netscape Enterprise Server's administration tool. You can do this from the Netscape
administration server. Select Programs, select LiveWire, and then select to enable LiveWire applications. Save and apply the change.
For general information and documentation on the Informix database, check out Informix's Knowledge Base.
At this point you should be able to access the Informix database using the tools in the INFORMIX-OnLine Workgroup Server program group. To access Informix from the Enterprise Server (to run dbadmin), you will need to run regcopy (in /informix/bin) and reboot the server to make sure the database is online (command center in the INFORMIX-OnLine Workgroup Server program group).
Unzipping the Download File
Make sure you unzip the download file using the -d option, for example:
pkunzip -d olwgs712.zip
NT File System and DHCP
When prompted for a location in which to install Informix, enter a directory
on an NTFS disk partition. You must install on an NTFS partition. Also, make sure you are not using DHCP.
Conserving Disk Space
To reduce the amount of disk space used by the OnLine Workgroup Server,
choose Custom and specify the database size. The suggested minimum size
is 20MB.
Hosts File
You need to ensure that a valid HOSTS file exists on the machine on
which the INFORMIX-OnLine Workgroup Server is going to be installed. On
Windows NT, this is typically located in the \WINNT35\system32\drivers\etc
directory. The HOSTS file should contain a fully qualified domain specification
for the host system in addition to the LOCALHOST entry, for example:
127.0.0.1 localhost
160.184.145.36 pctest..my_company.com
If a valid HOSTS file is not present, the Informix installation will abort the first time it tries to connect to the Informix database server, when it attempts to build the sysmaster database.
You will also need to configure your hosts.equiv file located in the WINNT35\system32\drivers\etc directory. It should contain a complete list of domain names for the local machine, so if your machine name is neuromancer.mcom.com and you have beavis.mcom.com mapped to that same IP address, then the file should include both those names.
Informix Environment Variables
The INFORMIX-OnLine Workgroup Server installation procedure defines
a number of Informix environment variables (most importantly, INFORMIXDIR
and INFORMIXSERVER). To connect to Informix, the HTTP server (for example,
Netscape Enterprise Server) needs to be aware of these. If you install
the HTTP server before installing Informix, Netscape LiveWire Pro will
not be able to open the connection to Informix. A message will indicate
that it can't locate the required Informix files. The solution is to stop
and then restart the HTTP server.
Database User, Password, and Database Server Name
During the INFORMIX-OnLine Workgroup Server installation process, you
will need to create a database user, assign a password, and name the database
server. As downloaded, the applications are compiled to use a database
of type INFORMIX, informix for both user name and password,
and appalanche_db as the database server name. If you use these values
for user name, password, and database server name, you will not need to
modify each application's database connect string and recompile. (Note
that some of the applications may need recompilation for different reasons;
please be sure to read each application's README file.)
Serial Number and Key
When prompted for a serial number and key, enter the following:
Running as a User Service
By default, the Netscape HTTPD OR HTTPS service runs as a system service.
To use Informix, it is recommended that you change the service to run as
a user service (generally, your normal logon name): In Control
Panel | Services, select the Netscape Enterprise service and choose Startup.
In the dialog box that appears, choose Log On As - This Account,
and enter your account name.
Starting the Informix Database
Be sure to start up the Informix database before starting the Enterprise Server.
Database Access Problems
If after installing all platform components (Netscape Enterprise Server
and Informix database) you experience problems with database access through
Netscape LiveWire, perform the following steps:
Troubleshooting the Informix Installation
If you experience any problems during the Informix installation, check
the "online.log" file in the Informix directory. Be sure to read the
Release Notes document (README.WRI) that is included with the Informix
installation.
If you encounter the error
21:04:05 listener-thread: err = -956: Client host or user (informix@informix1.mcom.com) is not trusted by the server
do the following:
If you encounter the error
21:04:05 listener-thread: err = -956: Client host or user (informix@h207-1-136-188.mcom.com) is not trusted by the server
then you are almost certainly using DHCP. The best solution is to turn DHCP off and reinstall. If you cannot do this, you may try the workaround described above.
regcopy.exe
file in the informix\bin
subdirectory on your Windows NT Server.
You are now ready to proceed with installing the applications.
database.connect()
statement Assuming that the above database environment is being used, a typical application is installed as follows (please refer to the application's README file for application-specific details):
/LiveWire/samples/appdir
. This directory will be called
app_directory in this document. app_directory/dbms/ifx
directory. For
NT, double-click the Command Line Utilities icon in the INFORMIX-OnLine Workgroup Server
program group. This will bring up a DOS window where you will need to enter the following
command: cd app_directory\ifx
dbaccess
Copyright © 1997 Netscape Communications Corporation