Installation Guide


Chapter 3   Installing SilverStream on UNIX

This chapter describes how to install SilverStream on UNIX and Linux.

It contains these topics:

 
Top of page

System requirements and supported databases

See the Release Notes for the latest information on the following:

 
Top of page

Installing SilverStream

This section describes how to install the SilverStream server. It includes the following sections:

 
Top of section

Before you install

NOTE   For any updated information about installing SilverStream, see the Release Notes.

Before you install the SilverStream server, make sure you have created and configured a database to be used as your SilverMaster database. See the appropriate chapter in this guide for information on setting up your database type. See the Release Notes for the database versions and drivers supported for your platform.

You must have Read or Execute rights for the installation directories; otherwise, you will receive an error message.

On UNIX, the SilverStream server listens on port number 8080 by default. If another process is occupying that port, the installation procedure lets you specify a different port. If you want to set the port numbers to values lower than 1024 (normally reserved for root on UNIX systems), you have to be identified as user root. After installing SilverStream, you can change the user name and ports used by the SilverStream server.

    For more information, see Changing the user account and ports.

HP-UX note   Java programs can heavily use threads and sockets. HP-UX's default setting for the max_thread_proc kernel parameter is too low for Java applications. You need to increase its value to at least 2048. If you don't, the VM might silently crash. For more information, go to the HP Web site (http://www.hp.com) and search for max_thread_proc.

 
Top of section

Mounting the CD-ROM drive (HP-UX)

To install SilverStream, you must first mount the CD-ROM drive.

To mount the CD-ROM:

  1. Create the /cdrom directory to be used as the mount point.

      mkdir /cdrom
    
  2. Start the pfs_mountd and pfsd daemons if they are not already running.

      nohup /usr/sbin/pfs_mountd &
      nohup /usr/sbin/pfsd &
    
  3. Mount the CD-ROM to the mount point.

      /usr/sbin/pfs_mount -x unix -t rrip /dev/dsk/c1t2d0 /cdrom
    

    where c1t2d0 is the CD-ROM device.

 
Top of section

Mounting the CD-ROM drive (Solaris)

The Solaris Volume Management software automatically mounts the CD-ROM to the /cdrom mount point.

 
Top of section

Mounting the CD-ROM drive (AIX)

To install SilverStream, you must first mount the CD-ROM drive.

To mount the CD-ROM:

  1. Create the /cdrom directory to be used as the mount point. For example:

      mkdir /cdrom
    
  2. Mount the CD-ROM to the mount point.

      mount -vcdrfs -r /dev/drive mount-point
    

    where drive is the CD-ROM drive (typically cd0) as seen in the first columns of the lsdev -Cc cdrom command and mount-point is the full path to the directory you created to mount the CD-ROM.

    A typical statement is:

      mount -vcdrfs -r /dev/cd0 /cdrom
    

 
Top of section

Running the install

Once the CD-ROM drive is mounted, you can install SilverStream. You do not need to run the Installation program with root privileges; you can install as any user.

To install SilverStream:

  1. Change the directory to the CD-ROM mount port.

      cd /cdrom
    
  2. Enter the following at the command prompt:

      ./install.sh
    

    The installation script begins. It checks to see whether you have all required patches installed. If so, it continues; if not, it tells you what you need to do.

  3. Press Enter to see the SilverStream license agreement.

  4. Specify the directory where you want to install the software or press Enter to accept the default.

  5. If prompted, press Y or Enter to create the directory.

  6. Specify the DBMS you will use for your SilverMaster.

    The information you need to provide depends on the database type you chose.

    Database type

    Required information

    Cloudscape

    • SilverMaster database name

    • Database user name

    • Database user password

    • JDBC URL

    DB2

    • Directory containing the DB2 client

    • SilverMaster database name

    • Database user name

    • Database user password

    Informix

    • SilverMaster database name

    • Database user name

    • Database user password

    • Informix host name

    • Informix server name

    • Informix port number

    • Informix installation directory

    Oracle

    • ORACLE_HOME directory

    • SilverMaster database name

    • Database user name

    • Database user password

    NOTE   You can check the connection to the database from the machine you are running the installation on using sqlplus. For example:

      sqlplus username/password@databasealias
    

    Sybase

    • SilverMaster database name

    • Database user name

    • Database user password

    • Sybase host name

    • Sybase port number

    • Directory containing the jConnect classes or JAR file

  7. You are asked whether you want to upgrade a previous version of the SilverStream SilverMaster.

    Select Yes to upgrade your previous SilverMaster to the current version.

  8. If you are not upgrading an existing SilverMaster, you are asked whether the Installation program should configure the SilverStream server--that is, initialize the SilverMaster database. Choose Yes.

  9. If you are upgrading or initializing a SilverMaster, you are asked whether you want to restrict access to the SilverStream server.

    If you accept the default (yes), unauthorized users will not be able to access administration operations or browse directory listings. Access to administrative settings and resources will be limited to members of the Administrators group. Only members of the Administrators and Developers groups will be able to browse directory listings. All users will be required to log in whenever they access the server. All users will have Execute permission, which enables them to run application operations.

    Installing the SilverStream server without restricting access means that all users will be able to perform administrative operations and browse directory listings until you lock down access by setting permissions.

    SilverStream recommendation:

        For more information, see the chapter on using security in the Administrator's Guide.

  10. If you are creating a new SilverMaster or initializing an existing SilverMaster, you are asked to define a user name and password for the SilverStream user who will administer the server. The Installation program will create a user with this name and password and assign this user Locksmith privileges. Your server's administrator will log in to the server using this account.

        For more information, see the chapter on setting up users and groups in the Administrator's Guide.

  11. You are asked to specify the HTTP port. Enter the port number or press Enter to accept the default.

    The SilverStream server defaults to port 8080 on UNIX. You need to specify the port number when you connect to the server from the SilverStream Designer or when you specify URLs on that server. For example: from the SilverStream Designer, select the Choose Server icon and enter the name as hostname:portnumber. For example:

      myserver:8080
    

    For application URLs on the server, you need to tell the browser what port number the server is using (for example, http://myserver:8080/...).

  12. If you instructed the Installation program to configure SilverMaster in Step 8, you are asked to specify the name service port number. This is the port that SilverStream starts the RMI name services on. Typically you can accept the default.

    Enter the name service port number or press Enter to accept the default.

  13. Enter your license string and press Enter.

    The Installation program displays a screen that contains information about the changes the program will make, information about the SilverMaster and SilverStream server settings, and the license string.

  14. If the information is correct, enter Yes to start the installation.

    The program creates or edits your httpd.props file and sets environment variables in .agprofile. A list of the install directories appears, along with the message that SilverStream is creating resources. This portion of the Installation program, which runs SilverMasterInit, may take some time.

    When the Installation program completes, you are asked if you want to start the SilverServer now.

  15. If you choose Yes, the SilverStream server starts.

    If you choose No, you can start the SilverStream server manually. See Testing the install.

    If you want the server to start automatically when the machine boots, use the sample startup scripts that are installed on your system. The text preceding the final installation prompt tells you where to find the sample startup scripts.

        For more information about using the startup scripts, see Setting the SilverStream server and cluster components to run as daemons.

  16. Unmount the CD-ROM device as needed.

Installing and using online help   If you did not install the SilverStream server online help during your server installation, you can install it later: It is located on the CD in docs.tar; install it by cd'ing into your SilverStream installation directory and executing the following:

  tar xvf CDdrive/docs.tar

To start help, open Start_Core_Help.html, which is in the SilverStream Docs directory.

 
Top of section

Setting the SilverStream server and cluster components to run as daemons

The Installation program installs sample startup scripts that your system can run to automatically start the SilverStream server or cluster components as daemons at boot time.

Server and cluster sample startup scripts

The paths to the server and cluster component startup scripts for each supported UNIX platform are listed in the following tables. See Step 4 of the following procedure for sample commands that install the server component for each platform.


Server path

Cluster path

AIX

$installdir/etc/rc.silverserver

$installdir/etc/rc.silvercluster

HP-UX

$installdir/sbin/init.d/silverserver

$installdir/sbin/init.d/silvercluster

Server link:

$installdir/sbin/rc3.d/init.d/S300silverserver

Cluster link:

$installdir/sbin/rc3.d/init.d/S300silvercluster

Solaris

$installdir/etc/rc3.d/S90silverserver

$installdir/etc/rc3.d/S91silvercluster

NOTE   As shown in the preceding table, the HP-UX server and cluster component scripts use link files.

Using the server sample startup scripts

A system administrator with root privileges must copy the sample server and cluster scripts from the install directory into your operating system's boot directory.

    For more information, see Setting up the SilverStream server to run as a daemon next and Setting up the SilverStream cluster to run as a daemon.

Setting up the SilverStream server to run as a daemon

To have the server startup script run the next time your system reboots, a system administrator with root privileges must copy the script from the install directory into your operating system's boot directory as shown in Step 4 of the following procedure.

To set up the SilverStream server to run as a UNIX daemon:

  1. Before you install SilverStream as a daemon, review the recommendations in Guidelines on setting SilverStream to run as a service or a daemon.

    The following procedure assumes that you have already run the Installation program and created and configured a database to be used as your SilverMaster database.

  2. Locate the sample startup scripts as listed in the preceding table.

  3. Edit the server and cluster components startup scripts if needed.

  4. Copy the sample script from your install directory into the boot directory for your platform. The script will run from that directory the next time the system reboots.

    For example, to copy the sample server script for Solaris from an install directory called $SILVERSTREAMROOT/etc/rc3.d to a boot directory called /etc/rc3.d, you would type:

      cp $SILVERSTREAMROOT/etc/rc3.d/S90silverserver /etc/rc3.d
    

    The following table shows platform-specific sample commands.

    Platform

    Command

    AIX

    Sample server copy command:

      cp $SILVERSTREAMROOT/etc/rc.silverserver /etc/
    

    HP-UX

    Sample server copy and link commands:

      cp $SILVERSTREAMROOT/sbin/init.d/silverserver /sbin/init.d
      
      ln -s /sbin/init.d/silverserver /sbin/rc3.d/S300silverserver
    

    The HP-UX sample scripts use links that are similar to those used by HP-UX for their startup script environment. In the second command above, /sbin/rc3.d/s300silverserver is a link that points to /sbin/init.d/silverserver.

    Solaris

    Sample server copy command:

      cp $SILVERSTREAMROOT/etc/rc3.d/S90silverserver /etc/rc3.d
    

        For more information, see the Server and cluster sample startup scripts.

  5. Start the SMC (SilverStream Management Console).

        For more information, see the Administrator's Guide.

  6. Use the Configuration/General panel to specify the user under whose account the server will be started at boot time. To provide security, set the Username for server property to your (or another user's) user account. By default, this property is set to root.

    You should change privileges from root to a different effective user ID. Once a root process changes its ownership to become a nonroot process, it can't recover its former access privileges.

Setting up the SilverStream cluster to run as a daemon

You can use the sample scripts to start a cluster component as a daemon. By default, the scripts run with root privileges. If you want the cluster to start as a user other than root, see your system administrator who can apply the setuid permission to the cluster component script files.

    For a list of startup scripts, see the table in Using the server sample startup scripts.

 
Top of section

Changing the user account and ports

After installing SilverStream, you can change the user account that the server runs under. You can also change the ports used by the server. For example, you might want to use port 80 (the default port for SilverStream on NT) as the runtime port. That requires root access, but maybe you want the server to run under a different user account. You could perform the following procedure.

    For more information about the runtime, design, and administration ports used by the SilverStream server, see the section on setting up separate ports in the chapter on running the server in the Administrator's Guide.

To change the user account and ports:

  1. Open the SMC (SilverStream Management Console).

  2. Select Configuration options.

  3. Select the General panel.

  4. Set Username for server to the user name for the process.

  5. Change the port numbers as appropriate.

  6. Click Update.

    For more information about the SMC, see the Administrator's Guide.

Using a port less than 1024   If you specified a port lower than 1024 (such as 80) but a user name other than root, you need to do the following:

 
Top of page

Database notes

Tablespaces for Oracle databases   The installation will use the default tablespace of the user name/password specified for your SilverMaster database. You can usually set the default tablespace with the following SQL statement:

  ALTER USER username DEFAULT TABLESPACE mytablespace ;

Using different database types with the same SilverStream server   If you install with a Sybase or Informix SilverMaster and want to add an Oracle database, you need to have $ORACLE_HOME set and have $ORACLE_HOME/LIB in your SHLIB_PATH (for HP-UX), LD_LIBRARY_PATH (for Solaris and Linux), or LIBPATH (for AIX).

If you installed with an Oracle SilverMaster and would like to add a Sybase or an Informix database, you need to add the jConnect classes or Informix JAR file to your AGCLASSPATH. Alternatively, you can modify the AGCLASSPATH in the environment file silverstream/.agprofile. Note that SilverServer sources .agprofile automatically; you do not need to source it manually.

You must perform all of these steps before starting the server.

 
Top of page

Testing the install

To test your installation, you need to start the SilverStream server.

    For complete information about starting and stopping the SilverStream server, see the chapter on running the server in the Administrator's Guide.

To start the SilverStream server:

  1. Access the bin subdirectory (for example, /usr/local/silverstream/bin) in the directory where you installed SilverStream. Execute the following script:

      ./SilverServer &
    
  2. The following message appears:

      SilverStream Server loading properties from: /usr/silverstream/Resources/httpd.props 
      SilverStream Server ... serving at: http://host_name:port
    

    You must have Read or Execute rights for the installation directories; otherwise, you will receive an error message.

NOTE   It is also a good idea to verify that any services that the SilverStream server depends on are running and set to start automatically when the system reboots.

    If you encounter a problem, see Troubleshooting.

 
Top of page

Accessing the SilverStream server

You can access the SilverStream server running on UNIX from the SilverStream Designer.

To access a UNIX SilverStream server from the Designer:

  1. Select the Choose Server icon from the SilverStream Designer toolbar or select File>Choose Server.

    A dialog box appears, prompting you to enter the name of the server.

  2. Specify hostname:portnumber and click OK.

    A new server icon appears in the left pane of the Designer. This icon displays the name of the server you specified.

  3. To see a list of databases that reside on the server, click the plus (+) sign that appears in front of the icon.

 
Top of page

Setting environment variables

SilverStream creates the environment file .agprofile in the SilverStream installation directory during installation (since it is a "dot" file, you need to issue the ls -a command to see it). SilverStream sources this file automatically when starting.

The .agprofile file sets up a proper environment to launch the SilverStream server. It sets environment variables for the following:

Normally this file is only edited by SilverStream during installation. However, you might want to alter this file for the following reasons:

You must restart the server after changing the AGCLASSPATH and before adding the database.

 
Top of page

Troubleshooting

This section describes known problems and their workarounds.

 
Top of section

Invalid license number

Error message

  ***Warning: License improperly installed: SilverStream Software;
  <licensenumber>
  ***Warning: No valid Licenses found defaulting to Single User
  License.
  SilverStream Server [Build Number: Number] serving at: http://servername: portnumber 

Description

This may occur if you run SilverMasterInit outside the installation.

You must reapply your license to the SilverMaster database. Go to your /cdrom/silverstream directory and run the following command:

  ./upldlic.sh your license number

 
Top of section

X Windows connection errors

X Windows error message

  Xlib: connection to "sunny:0.0" refused by server
  Xlib: Client is not authorized to connect to Server

Description

Messages like these can occur if you are installing on a remote machine. The following command or a suitable variation should be run from a remote machine:

  xhost +
  xhost + machinename_of_installation

If after executing the xhost command, you get the following error:

  /usr/openwin/bin/xhost: must be on local machine to add or remove hosts. 

you must execute the command at the server console and not remotely.

X Windows error message

The following message may be caused by an incorrect DISPLAY variable.

  Java exception occurred java.lang.InternalError: Can't connect
  to X11 window server using '222.111.99.333:0.0' as the value
  of the DISPLAY variable.

Description

Try changing the value of the DISPLAY environment variable to one of the following:

  DISPLAY=:0.0
  export DISPLAY

or

  DISPLAY=machinename:0.0
  export DISPLAY

 
Top of section

Unable to create server socket

Error message

  ***Fatal Error, aborting com.sssw.srv.http.httpd: An unexpected exception occurred      com.sssw.srv.daemon.ServerHandlerInitException: Unable to create server socket on port 80, details: Permission denied at com.sssw.srv.http.httpd.initializeServerSocket (httpd.java:1105) at com.sssw.srv.http.httpd.initialize (httpd.java:2344) at com.sssw.srv.http.httpd.mainBODY = (httpd.java:2437) at com.sssw.srv.http.httpd.main(httpd.java:2446)

Description

You tried to start SilverServer on port 80 without root privileges.

Usually only the root user can start a server on port 80. Try logging on as root and starting SilverServer, or follow the procedure in Changing the user account and ports.

 
Top of section

Corrupted SilverMaster

Error message

  SilverStream Server loading properties from:
  /opt/silverstream/Resources/httpd.props
  *** Fatal Error, aborting
  com.sssw.srv.http.httpd: An unexpected exception occurred
  com.sssw.srv.daemon.ServerHandlerInitException: An exception
  occurred while attempting to initialize the connection to
  'SilverMaster':
  Unable to find schema for database SilverMaster in AgInfo
  table.
  at com.sssw.srv.http.httpd.initializeProperties
  (httpd.java:1356)
  at com.sssw.srv.http.httpd.initialize(httpd.java:2287)
  at com.sssw.srv.http.httpd.mainBODY(httpd.java:2437)
  at com.sssw.srv.http.httpd.main(httpd.java:2446)
  -----------------------------------------------------
  Java exception occurred java.lang.RuntimeException:
  An unexpected exception occurred
  -----------------------------------------------------

Description

If after running SilverServer you see this error, the SilverMaster database has been corrupted and SilverMasterInit should be rerun.

 
Top of section

Problems starting SilverServer

If you would like to start SilverServer without checking the SilverMaster resources, you can start the server using the -nodbcheck startup option:

  ./SilverServer -nodbcheck

 
Top of section

Full-text search fails

Error message

  Unable to save a table with a field that is marked "Full Text Searchable".

Description

Full-text search will fail if the directory in which SilverStream resides contains a hyphen (-) or a period (.).

Reinstall SilverStream into a directory that does not contain a hyphen or a period. (Renaming the SilverStream directory is not sufficient, since environment variables are set during the installation.)


Installation Guide

Copyright © 2001, SilverStream Software, Inc. All rights reserved.