* Get ready for the 6.10 release
[citadel.git] / webcit / README.txt
1                       WEBCIT for the Citadel/UX System
2                                version 4.10
3  
4    Copyright (C) 1996-2002 by the authors.  Portions written by:
5         Art Cancro
6         Nathan Bryant
7         Nick Grossman
8         Andru Luvisi
9  
10 This program is free software released under the terms of the GNU General
11 Public License.  Please read COPYING.txt for more licensing information.
12  
13  
14  INTRODUCTION
15  ------------
16  
17  Citadel/UX is a sophisticated BBS and groupware package which allows multiple
18 users to simultaneously access the system using a variety of user interfaces.
19 This package (WebCit) is a "middleware" package which presents an HTML/HTTP
20 user interface to the Citadel system.
21  
22  What this means in practice is that after you've installed WebCit, users can
23 access all functions of your system using any web browser.  Since this may be
24 the first Citadel experience for many new users, the screens have been designed
25 to be attractive and easy to navigate.
26  
27  
28  INSTALLATION
29  ------------
30  
31  Unline some web-based packages, WebCit contains its own standalone HTTP
32 engine.  As a result, you can get it running quickly without all that tedious
33 mucking about with Apache configuration files and directories.  WebCit is not
34 intended to replace your Apache server, however -- it *only* provides a front
35 end to Citadel.  If you do not have another web server running, you may run
36 WebCit on port 80; however, in the more likely situation that you have Apache
37 or some other web server listening on port 80, you must run WebCit on another
38 port.  The default is port 2000.
39  
40  To compile from source, enter the usual commands:
41   ./configure
42   make
43  
44  Then to test it, simply run the webserver:
45   ./webserver
46  
47  You'll see a bunch of diagnostic messages on the screen.  At this time you
48 can try it out.  Point your web browser to WebCit using a URL such as:
49  
50   http://your.host.name:2000
51  
52  ...and log in.  When you're satisfied that the program is working the way you
53 want it to, you should set it up to be automatically started by the system at
54 boot time.  The recommended way to do this is with an entry in /etc/inittab,
55 because init can then automatically restart WebCit if it happens to crash for
56 any reason.  Open /etc/inittab and add an entry something like this:
57  
58  wc:2345:respawn:/usr/local/webcit/webserver
59  
60  
61  Several command-line options are also available.  Here's the usage for
62 the "webserver" program:
63   
64  webserver [-p localport] [-t tracefile] [-c] [remotehost [remoteport]]
65  
66    *or*
67  
68  webserver [-p localport] [-t tracefile] [-c] uds /your/citadel/directory
69  
70  Explained: 
71   
72   -> localport: the TCP port on which you wish your WebCit server to run.
73      this can be any port number at all; there is no standard.  Naturally,
74      you'll want to create a link to this port on your system's regular web
75      pages (presumably on an Apache server running on port 80).
76  
77   -> tracefile: where you want WebCit to log to.  This can be a file, a
78      virtual console, or /dev/null to suppress logging altogether.
79  
80   -> The "-c" option causes WebCit to output an extra cookie containing the
81      identity of the WebCit server.  The cookie will look like this:
82        Set-cookie: wcserver=your.host.name
83      This is useful if you have a cluster of WebCit servers sitting behind a
84      load balancer, and the load balancer has the ability to use cookies to
85      keep track of which server to send HTTP requests to.
86  
87   -> remotehost: the name or IP address of the host on which your Citadel/UX
88      server is running.  The default is "localhost".  (NOTE: if you run
89      WebCit and the Citadel/UX server on different hosts, the real-time chat
90      screen will not work, due to the Java security model.  Only the chat
91      window is written as a Java applet; everything else is plain HTML.)
92  
93   -> remoteport: the port number on which your Citadel/UX server is running.
94      The default is port 504, the IANA-designated standard port for Citadel.
95  
96   -> "uds" is a keyword which tells WebCit that you wish to connect to a
97      Citadel server running on the same computer, rather than using a TCP/IP
98      socket.  /your/citadel/directory should be set to the actual name of the
99      directory in which you have Citadel installed
100      (such as /usr/local/citadel).  If you run Citadel and WebCit on the same
101      computer, this way may run a bit faster, but you may experience trouble
102      with the real-time chat facility.
103  
104  
105  GRAPHICS
106  --------
107  
108  WebCit contains a small amount of graphics (buttons, etc.) which are kept
109 in its "static" subdirectory.  All site-specific graphics, however, are
110 fetched from the Citadel server.
111  
112  The "images" directory on a Citadel/UX system contains these graphics.  The
113 ones which you may be interested in are:
114  
115  -> background.gif: a background texture displayed under all web pages
116  -> hello.gif: your system's logo.  It is displayed along with the logon
117     banner, and on the top left corner of each page.
118  
119  
120  CALENDAR SERVICE
121  ----------------
122  
123  WebCit contains support for calendaring and scheduling.  In order to use it
124 you must have libical v0.24 (or newer) on your system.  You must also be
125 running a Citadel server with calendaring support.  The calendar service will
126 be automatically configured and installed if your host system supports it.
127  
128  
129  CONCLUSION
130  ----------
131  
132  That's all you need to know to get started.  If you have any questions or
133 comments, please visit UNCENSORED! BBS, the home of Citadel/UX, at
134 uncensored.citadel.org.