Sambar Server Documentation
|
Server Installation |
Hardware Requirements (mimimum tested on):
The above is the minimum recommended configuration. One user has written they are successfully using Sambar Server 4.02 on a 486/33 with 8MB of memory.
Web browsers require a TCP/IP protocol stack to communicate with a Web server, even if the server is on the same machine and there is no intervening network. You must have TCP/IP installed to use the Sambar Server.
1. If downloading from the network, unzip the downloaded file into a temporary directory. Otherwise, proceed to step 2.
2. Double-click on the setup executable. This is a standard Install-Shield application which prompts you for a directory in which install the software. To uninstall the software, use the Windows Add/Remove Software tool found on the Control Panel.
Important: The Sambar Server cannot be installed and run in the root directory of any drive (i.e. c:\).
Other than InstallShield entries (used for the uninstall utility),
no Registry Entries are created or used by the Sambar Server.
If you are a Windows 95/98 user or Windows NT user, the Sambar Server Icon should appear in the tray at the bottom of your screen. Right mouse click on this icon and select open to see the status of the server. Note: NT 3.51 users should see the Sambar Server dialog popup.
If the Sambar Server icon does not appear, a failure has resulted in the premature shutdown of the server. An error message indicating the cause of the failure can be found in the log/server.log file (found in the directory in which the Sambar Server was installed).
2. Start Netscape Navigator.
3. Connect to the Sambar Server by typing the machine name into the "Location:" input box and pressing Enter (i.e. http://localhost).
Note: To shut down the Sambar Server, enter the System Administration forms, and select 'Shutdown' from within the System Management form. Alternatively, you can exit from the application GUI.
C:\Program Files\sambar\bin> ntserver -i
The above command will install the Sambar Server NT Service which can then be started using the Services control panel. To uninstall the Sambar Server NT Service, run the following from the command:
C:\Program Files\sambar\bin> ntserver -u
Finally, the Sambar Server can be executed directly from the command line as a console application by executing the following from the command line:
C:\Program Files\sambar\bin> ntserver -d
To install the ntserver under a service name other than Sambar Server (for example, when installing multiple services on the same machine), the -s service-name argument can be used. In addition, the -c configdir argument can be used to direct the server to use a configuration directory other than the local installation directory config.
To view server activity with the same GUI as the Windows application, the ntview application can be used. This application connects to the NT Service using a named-pipe to read server log activity.
At boot time, the Windows 95/98 system checks two registry keys: RunServices and RunServicesOnce. To run the Sambar Server at startup, use the registry editor to edit the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices
Add the following String to the above registry key (assuming you installed the server in c:\Program Files\Sambar):
Sambar="C:\Program Files\sambar\bin\server.exe"
In addition to the above registry entry, add the following to your autoexec.bat file:
SET SAHOME=C:\Program Files\sambar
This environment variable indicates the location of the Sambar Server installation when the "working directory" cannot be used or is unavailable. A bug in the server GUI code prevents the server from properly recognizing that the operating system is Windows 95/98; as a result, the server is started maximized rather than minimized in the icon tray.
Alternatively, you can use Windows Explorer to put a shortcut to the Sambar Server in the C:\Win95\Start Menu\Programs\StartUp. The Properties of the shortcut file should have the Target point to C:\Program Files\sambar\bin\server.exe and the Start In point to C:\Program Files\sambar (assuming the default Sambar Server installation). The server will properly start minimized in icon tray.
In addition, the argument -t can be used to indicate that the server should not send trace data to the GUI when it is in the icon tray. By default, if the server is hidden, trace data is still captured/maintained. For high-performance sites, the server should either be run as an NT Service or run with the -t option to minimize the impact of tracing data when iconified.
The -c config argument can be used to direct the server to run using the configuration file in the config directory. By default, the server looks for the config directory relative to the bin directory whenere the server is started. The -c argument can be used to override this path.
Lastly, to run a second instance of the server on the same machine, the -n flag can be used. By default, the server.exe checks to see if another instance of the Sambar Server is running, and if one is found, it brings that instance to the foreground. The -n flag can be used to indicate that no check for existing instances should be performed. Important: To run two instances of the server, each must have it's own configuration file and must be configured to run on different HTTP server ports.
When upgrading from a previous server installation, the following steps are recommended: