The form shows a list of the most common tasks you might want to perform
on a newly installed Compass Server. The green bars highlight the major
tasks, creating sections. Each section has a description of the task, along
with a list of specific tasks to perform.
Once installed, the server runs constantly, listening for and accepting requests. If your server is running, you'll see the On icon and its green light (left of the server's name) in the Server Administration page. You can start and stop the server by clicking the icon. You can also start, restart, and stop the server from the Server Manager (or the Windows NT Control Panel) or from the command line.
To start or stop the server from the Server Manager:
If your server is on and you click Server On, the server will restart.
NOTE: Sometimes the status indicated on the Server Administration form does not update correctly. You can correct this by reloading the page.If your machine crashes or is taken offline, the server stops and any requests it was servicing may be lost.
Unix Stopping shuts down the server completely, interrupting service until it is restarted. If you started the server with theinittab
file (as described in Restarting with inittab), you need to remove the line pertaining to the server ininittab
before shutting down the server; otherwise, the server automatically restarts.
Restarting the Server
Restarting the server is somewhat different depending on your operating system.Restarting the Server for Unix
You can restart the server using one of the following methods:Because the installation forms cannot edit the
- Automatically restart it from the
inittab
file.
- Automatically restart it with daemons in
/etc/rc.local
when the machine reboots./etc/rc.local or /etc/inittab
files, you need to edit those files with a text editor. If you don't know how to edit these files, consult your system administrator or system documentation. Normally, you can't start an SSL-enabled server with either of these files because the server requires that you enter a password before starting. Though you can start an SSL-enabled server automatically if you keep the password in plain text in a file, this practice is not recommended.WARNING: Leaving your SSL-enabled server's password in plain text in the server's start script on your system is a large security risk. Anyone who can access the file has access to your SSL-enabled server's password. Consider whether you can afford the security risks before keeping your SSL-enabled server's password in plain text on your system.The server's start script, key pair file, and the key password should be owned by root (or, if a non-root user installed the server, that user account), with only the owner having read and write access to them. If the security risk is not a concern for you, follow these steps to start your SSL-enabled server automatically:
- Using a text editor, open the start file, which is located in
ServerRoot
/catalog-
server_identifier
.The start file contains three lines (the second line is blank):#!/bin/sh
cdServerRoot
; ./ns-httpd -d
ServerRoot
/catalog-
server_identifier
/config $@
- In the third line (counting the blank second line), insert the following after the semicolon:
echo "
your_SSL-enabled_server_password
"|
For example, the edited third line might look like this:cd /usr/Netscape/SuiteSpot/bin/https; echo "MBi12!mo"|./ns-httpd -dServerRoot
/compass-server_id
/config $@Restarting with inittab
To restart the server usinginittab
, put the following text on one line in the/etc/inittab
file:The -i option prevents the server from putting itself in a background process.http:2:respawn:
ServerRoot
/
compass-identifier
/start -i
ReplaceServerRoot
with the directory where you installed the server, and replacecompass-identifier
with the server's directory. You need to remove this line before you stop the server.Restarting with the System RC Scripts
If you use/etc/rc.local
, or your system's equivalent, place the following line in/etc/rc.local
:ReplaceServerRoot
/compass-
identifier
/startServerRoot
with the directory where you installed the server.Restarting the Server Manually
To restart the server from the command line, log in as root if the server runs on ports with numbers lower than 1024; otherwise, log in as root or with the server's user account. At the command-line prompt, type the following line and press Enter:ServerRoot
/
type-identifier/start
Replace ServerRoot with the directory where you installed the server. You can use the optional parameters-p
and-i
at the end of the line: The-p
optionstarts the server on a specific port number. This overrides the setting in
magnus.conf
.The -i
option runs the server ininittab
mode, so that if the server process is ever killed or crashed,inittab
will restart the server for you. This option also prevents the server from putting itself in a background process.Note If the server is already running, thestart
command will fail. You must stop the server first, then use the start command. Also, if the server startup fails, you should kill the process before trying to restart it.Performing a Soft Restart
If the server is currently running and you want to restart it so that it uses an updated configuration, type:TheServerRoot
/
type-identifier
/restart
restart
command finds the parent process id (in thelogs/pid
file), and sends the hang-up (-HUP
) signal with this process id.Stopping the Server Manually
If you usedinittab
to restart the server, you need to remove the line starting the server from/etc/inittab
and typekill -1 1
before you try to stop the server. Otherwise, the server restarts automatically after it is stopped. To stop the server manually, log in as root or use the server's user account (if that is how you started the server), and then type the following at the command line:ServerRoot
/
compass-identifier
/stop
Restarting the Server for Windows NT
If you are using Windows NT, you can restart the server using one of the following methods:
- Use the Control Panel Services to restart any server.
- In the Main group, double-click the Control Panel icon.
- Double-click the Services icon.
- Scroll through the list of services and select the service for your server.
- Check Automatic to have your computer start the server each time the computer starts or reboots.
- Click OK.
NOTE: You can also use the Services dialog box to change the account the server uses. For more information about changing the account the server uses, see Changing the Server's User Account.Normally, you can't start an SSL-enabled server automatically because you have to enter its password. There is a way to have an SSL-enabled server start without having to enter a password if you keep the password in plain text in a text file. This practice is not recommended.WARNING: Leaving your SSL-enabled server's password in a text file on your system is a large security risk. In essence, you are trading security for convenience. Anyone who can access the file has access to your SSL-enabled server's password. Consider whether you can afford the security risks before keeping your SSL- enabled server's password in plain text on your system.If the security risk is not a concern for you, follow these steps to start your SSL- enabled server automatically:
- Type your private-key password in the first line, making sure not to put carriage returns or linefeeds after the password. The file must contain only the password.
When you start your SSL-enabled server, it first tries to read the password inpassword.txt
. If the file does not exist, you will be prompted for the password. Ifpassword.txt
exists but the password is incorrect, the server will add an entry to the error log and exit.WARNING: If you have an NTFS file system, you should protect the directory that containsOn FAT file systems, you cannot protect directories or files by restricting access to them.password.txt
by restricting its access, even if you do not use the file. The directory should have read/write permissions for the administration server user and the web server user. Protecting the directory prevents others from creating a falsepassword.txt
file.
The Add Key dialog box appears.
MortalityTimeSecs
.
The DWORD Editor dialog box appears.
The interval can be in binary, decimal, or hexadecimal format.
The
MortalityTimeSecs
value appears in hexadecimal format at the
right side of the Registry Editor window.
The default installation uses
/usr/Netscape/SuiteSpot
for the server
root. The Compass Server directory is called compass-
identifier
.
./start
or ./stop
to start or stop the server, respectively.
test
in the default directory, you would type as follows:
cd /usr/Netscape/SuiteSpot/compass-test
./stop
net
utility to start or stop the server at the command line, as follows:
test
, you would type the following:
net stop compass-test
admin-serv/catalog-
server_name
in your server root directory. For more information about the magnus.conf
and obj.conf
files, see Netscape's DevEdge online documentation web site at
http://developer.netscape.com/docs/manuals/index.htmlThe following list explains the server's technical settings:
Setting | Meaning |
---|---|
Max Categories | This is the maximum number of categories the robot can assign a given document to. After it makes this many assignments, the robot will stop processing classification rules for that document. The default value of 3 is probably sufficient for most cases. |
DB Batch Size | This value indicates how often an import agent submits the resource descriptions it has imported to the database. Import agents hold the newly imported resource descriptions in a temporary database for batch addition to the main database. This is much more efficient than adding each item as it is imported. You can change the default number, 1024, to force import agents to add their resource descriptions to the database more often or less often. |
Directory Locations
You can specify the locations of several kinds of files used by the Compass Server, as described in the following table.
Logfile Locations
You can specify pathnames for most of the log files generated by the Compass Server and its robot.
Administration Preferences
You have a certain amount of control over the appearance and behavior of the Server Manager itself, using the settings described in the following table.
Restoring Backup Configuration Files
You can view or restore a backup copy of your configuration files (compass-
server_id
.ad
, magnus.conf
, obj.conf
, webpub.conf
, mime.types
, .acl
files, rdm.conf
, csid.conf
, process.conf
, gv.conf
, import.conf
, site.conf
, filterrules.conf
, and filter.conf
).
To view or restore a backup copy of your configuration files:
NOTE: Turning off DNS lookups on your server has the following consequences: hostname restrictions won't work, and hostnames won't appear in your log files. Instead, you'll see IP addresses.You can also specify whether to cache the DNS entries. If you enable the DNS cache, the server can store hostname information after receiving it. If the server needs information about the client in the future, the information is cached and available without further querying. You can specify the size of the DNS cache and an expiration time for DNS cache entries. The DNS cache can contain 32 to 32768 entries; the default value is 1024 entries. Values for the time it takes for a cache entry to expire can range from 1 second to 1 year (specified in seconds); the default value is 1200 seconds (20 minutes).
NOTE: Normally, you should not change the persistent connection timeout. The default setting is sufficient in most cases.If you need to change the setting:
NOTE: All Compass Servers installed in the same server root must use the same user account. This account controls file access permissions. If you attempt to run different server users on the same system, only one will operate properly.
root
user (in this case, you don't need to be logged on as root
to start the server). If you don't specify a user account here, the server runs with the user account you start it with. Make sure that when you start the server, you use the correct user account.
If you don't know how to create a new user on your system, ask your system administrator or consult your system documentation.Even if you need to start the server as the
root
user, you don't want it to run as root all the time. You want the server to have restricted access to your system resources and run as a nonprivileged user. The user name you enter as the server user should already exist as a normal Unix user account. After the server starts, it runs as this user.
If you want to avoid creating a new user account, you can choose the user nobody
or an account used by another HTTP server running on the same host. On some systems, however, the user nobody
can own files but not run programs.
LocalSystem
), you can restrict or enable system features for the server. For example, you can use a user account that can mount files from another machine. The account must have the privilege to run as a service, however.
machinename.yourdomain.domain
. For example, if your domain is netscape.com
, you might install a server named www.netscape.com
.
If your system administrator has set up a DNS alias for your server, use that alias here. If not, use the machine's name combined with your domain name to construct the full hostname.
http://www.netscape.com:8090
Port numbers for the most commonly used network-accessible services are maintained in a file called services
. If you aren't sure that the port number you plan to use is available, look at the services
file on the server machine. The following table shows the location of the services
file.Table 2.1 Path names for services file
Operating system |
Location of services file
|
---|---|
Unix |
/etc/services
|
Windows NT |
\WINNT\System32\drivers\etc\services
|
Unix
If you aren't running as the root
user when you install or start the server, you
need to use a port number higher than 1024.
http://www.netscape.com/
and http://www.mozilla.com/
from one machine.
Because of limitations in HTTP, this is difficult to configure. However, there is a that involves making your machine answer to more than one IP address.
If you have already set up your system to listen to multiple IP addresses and want to use this feature, use the Bind To Address field to tell the server which IP address is associated with this hostname.
NOTE:
The default is localhost
, but the default may or may not work on your
system.
Repeat this process for each of the error responses you want to customize.
Choose the hour and minutes for the starting time using the lists provided.
Check only the days the task should run on. All other days are unchecked.
Last Updated: 02/12/98 13:33:17
Any sample code included above is provided for your use on an "AS IS" basis, under the Netscape License Agreement - Terms of Use